Versions in this module Expand all Collapse all v0 v0.7.25 Jul 30, 2026 Changes in this version + const ComponentName + const ExceededPort + const ProceedPort + const RequestPort + type Component struct + func (c *Component) GetInfo() module.ComponentInfo + func (c *Component) Handle(ctx context.Context, handler module.Handler, port string, msg any) module.Result + func (c *Component) Instance() module.Component + func (c *Component) OnSettings(_ context.Context, msg any) error + func (c *Component) Ports() []module.Port + type Context any + type Exceeded struct + Context Context + Iteration int + Reason string + SpentTokens int + SpentUSD float64 + type Proceed struct + Context Context + Iteration int + Remaining int + SpentTokens int + SpentUSD float64 + type Request struct + Context Context + CostUSD float64 + InputTokens int + Iteration int + OutputTokens int + SpentTokens int + SpentUSD float64 + type Settings struct + MaxCostUSD float64 + MaxIterations int + MaxTokens int