Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentLoop ¶
type AgentLoop struct {
Registry *provider.Registry
Session *Session
ToolRegistry *tools.Registry
Approval *tools.ApprovalGate
ContextManager *ContextManager
}
func NewAgentLoop ¶
type ContextManager ¶
type ContextManager struct {
MaxTokens int
}
func NewContextManager ¶
func NewContextManager(maxTokens int) *ContextManager
func (*ContextManager) EstimateHistoryTokens ¶
func (cm *ContextManager) EstimateHistoryTokens(history []provider.Message) int
func (*ContextManager) EstimateTokens ¶
func (cm *ContextManager) EstimateTokens(msg provider.Message) int
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func (*Session) AddMessage ¶
func (*Session) LastAssistantMessage ¶
Click to show internal directories.
Click to hide internal directories.