Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type BudgetExceededError ¶
type BudgetExceededError struct{ Msg string }
func (BudgetExceededError) Error ¶
func (e BudgetExceededError) Error() string
func (BudgetExceededError) Unwrap ¶
func (BudgetExceededError) Unwrap() error
type Config ¶
type Config struct {
MaxSteps int
MaxWallTime time.Duration
MaxTraceBytes int
MaxResultBytes int
MaxLLMCalls int
MaxLLMTokens int
MaxLLMCostUSD float64
LLMConcurrency int
DefaultLLMModel string
MaxStoreBytes int64
MaxStoreKeySize int
MaxStoreValueSize int64
Tier Tier
}
func DefaultFullConfig ¶
func DefaultFullConfig() Config
func DefaultLightweightConfig ¶
func DefaultLightweightConfig() Config
type ExecuteRequest ¶
type ExecuteResult ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) Execute ¶
func (r *Runtime) Execute(ctx context.Context, req ExecuteRequest) (ExecuteResult, error)
type Stats ¶
type Stats struct {
Steps int `json:"steps"`
DurationMs int64 `json:"duration_ms"`
ToolCalls int `json:"tool_calls"`
DiscoverCalls int `json:"discover_calls"`
DescribeCalls int `json:"describe_calls"`
LLMCalls int `json:"llm_calls"`
LLMTokensUsed int `json:"llm_tokens_used"`
LLMCostUSD float64 `json:"llm_cost_usd"`
StoreOps int `json:"store_ops"`
}
type Tier ¶
type Tier int
func ClassifyTier ¶
func ClassifyTier(code string, req ExecuteRequest) Tier
type TimeoutError ¶
type TimeoutError struct{ Msg string }
func (TimeoutError) Error ¶
func (e TimeoutError) Error() string
func (TimeoutError) Unwrap ¶
func (TimeoutError) Unwrap() error
type TokenBudgetExceededError ¶
type TokenBudgetExceededError struct{ Msg string }
func (TokenBudgetExceededError) Error ¶
func (e TokenBudgetExceededError) Error() string
func (TokenBudgetExceededError) Unwrap ¶
func (TokenBudgetExceededError) Unwrap() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.