Add vendor assessment agent

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
Aurélien Sibiril
2026-04-22 22:36:14 +02:00
parent 25c590ffe6
commit 509d0c88b1
108 changed files with 9445 additions and 645 deletions

View File

@@ -37,6 +37,13 @@ type (
ErrAuthentication struct {
Err error
}
// ErrStreamingRequired is returned by a provider when a non-streaming
// request must be retried with the streaming endpoint (e.g. Anthropic
// requires streaming for responses that may take longer than 10 minutes).
ErrStreamingRequired struct {
Err error
}
)
func (e *ErrRateLimit) Error() string {
@@ -68,3 +75,9 @@ func (e *ErrAuthentication) Error() string {
}
func (e *ErrAuthentication) Unwrap() error { return e.Err }
func (e *ErrStreamingRequired) Error() string {
return fmt.Sprintf("streaming is required: %v", e.Err)
}
func (e *ErrStreamingRequired) Unwrap() error { return e.Err }