-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
26 lines (20 loc) · 1.13 KB
/
errors.go
File metadata and controls
26 lines (20 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package augur
import "errors"
var (
// ErrSchemaInvalid indicates the provided schema (or struct type) could not
// be parsed into a valid JSON Schema.
ErrSchemaInvalid = errors.New("augur: invalid schema")
// ErrInvalidRequest indicates the request is malformed (nil, missing query, etc.).
ErrInvalidRequest = errors.New("augur: invalid request")
// ErrProviderFailure indicates the LLM provider returned an error
// (network failure, auth failure, rate limit, etc.).
ErrProviderFailure = errors.New("augur: provider execution failed")
// ErrResponseMalformed indicates the LLM returned a response that could not
// be parsed as valid JSON after all extraction attempts (direct parse,
// markdown fence stripping, brace scanning). The raw content is included
// in the wrapped error message for debugging.
ErrResponseMalformed = errors.New("augur: could not parse provider response as JSON")
// ErrSourcesNotSupported indicates that sources were requested but the
// configured model does not support web search.
ErrSourcesNotSupported = errors.New("augur: sources require web search, which is not supported by the requested model")
)