Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTokenBudgetExhausted = errors.New("token budget exhausted")
ErrTokenBudgetExhausted marks a model that spent max_tokens before answering.
Functions ¶
func Call ¶
func Call(ctx context.Context, client sdk.Client, model, prompt string, maxTokens int) (string, *sdk.CompletionUsage, error)
Call runs one no-tools completion: a single user message in, the trimmed assistant text out. Same shape as the judge and the conversation summarizer (direct client call, SkipMCP, bounded max_tokens). The caller owns the timeout via ctx.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.