Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyResponse = errors.New("model returned an empty response")
ErrEmptyResponse marks a model that finished without any text at all.
View Source
var ErrTokenBudgetExhausted = errors.New("token budget exhausted")
ErrTokenBudgetExhausted marks a model that spent max_tokens before answering.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.236.2
type Client struct {
// contains filtered or unexported fields
}
Client is the Completer over an SDK client.
type Completer ¶ added in v0.236.2
Completer answers one side call. The judge, insights and custom shortcuts consume it, so their tests script an answer without a stream.
type Request ¶ added in v0.236.2
Request is one no-tools side call: an optional system prompt, one user prompt and a token budget. Progress, when set, receives a status line while the model works. The caller owns the deadline via ctx.
Click to show internal directories.
Click to hide internal directories.