Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultModel = string(anthropic.ModelClaudeOpus4_8) DefaultEffort = string(anthropic.OutputConfigEffortHigh) // MaxTokens stays under the SDK HTTP timeout for non streaming requests. MaxTokens = 16000 // MaxRepairAttempts bounds how many times we hand a validation error back to // the model. Transport errors are not counted here - the SDK already retries // 429/5xx/connection failures on its own. MaxRepairAttempts = 3 )
View Source
const SystemPrompt = `` /* 8622-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶ added in v1.3.1
ValidateConfig catches the structural mistakes that would otherwise surface as a confusing nil dereference or an empty result at execution time.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(cfg AgentConfig) (*Agent, error)
func (*Agent) GenerateConfig ¶
GenerateConfig turns a natural language request into a validated Fitter config. Follow up calls on the same Agent refine the previous result, so "make it return 20 items instead" works without repeating the original ask.
func (*Agent) HasHistory ¶ added in v1.3.1
HasHistory reports whether a previous config exists to refine.
type AgentConfig ¶
Click to show internal directories.
Click to hide internal directories.