Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentManager ¶
type AgentManager struct {
// contains filtered or unexported fields
}
func NewAgentManager ¶
func NewAgentManager() *AgentManager
func (*AgentManager) Chat ¶
func (am *AgentManager) Chat(ctx context.Context, messages []Message, opts ChatOptions) (*Response, error)
func (*AgentManager) ListProviders ¶
func (am *AgentManager) ListProviders() []string
func (*AgentManager) RegisterProvider ¶
func (am *AgentManager) RegisterProvider(name string, provider Provider)
func (*AgentManager) SetActiveProvider ¶
func (am *AgentManager) SetActiveProvider(name string) error
type ChatOptions ¶
type ContextTracker ¶
func (*ContextTracker) AddTokens ¶
func (ct *ContextTracker) AddTokens(n int) bool
func (*ContextTracker) NeedsCompaction ¶
func (ct *ContextTracker) NeedsCompaction() bool
type RetryConfig ¶
func DefaultRetryConfig ¶
func DefaultRetryConfig() RetryConfig
type StuckLoopDetector ¶
type StuckLoopDetector struct {
// contains filtered or unexported fields
}
func NewStuckLoopDetector ¶
func NewStuckLoopDetector(threshold int) *StuckLoopDetector
func (*StuckLoopDetector) Record ¶
func (d *StuckLoopDetector) Record(toolCall string) bool
func (*StuckLoopDetector) Reset ¶
func (d *StuckLoopDetector) Reset()
Click to show internal directories.
Click to hide internal directories.