Documentation
¶
Index ¶
- type Client
- func (c *Client) BaseURL() string
- func (c *Client) ClearMemory() (int, error)
- func (c *Client) Compact() (*CompactResult, error)
- func (c *Client) Connect(provider, apiURL, apiKey, model string) error
- func (c *Client) GetMemorySnapshot() (map[string]any, error)
- func (c *Client) GetMemoryState() (*MemoryState, error)
- func (c *Client) GetStatus() (*StatusResult, error)
- func (c *Client) Interrupt() error
- func (c *Client) ListModels() ([]string, string, error)
- func (c *Client) ListSkills() ([]Skill, error)
- func (c *Client) LoadSkill(name string) (string, error)
- func (c *Client) ResetSession() error
- func (c *Client) SendConfirm(id string, ok bool) error
- func (c *Client) SendQuestion(id string, answers [][]string) error
- func (c *Client) SetMemoryState(enabled bool) error
- func (c *Client) SetMode(auto bool) error
- func (c *Client) SetModel(model string) error
- func (c *Client) Shutdown() error
- func (c *Client) StreamChat(payload map[string]string) <-chan Event
- type CompactResult
- type Event
- type EventConfirm
- type EventDone
- type EventError
- type EventQuestion
- type EventThink
- type EventToken
- type EventTool
- type EventToolStart
- type EventWardenStart
- type MemoryState
- type QuestionItem
- type QuestionOption
- type Skill
- type StatusResult
- type TokenMsg
- type ToolMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
HTTPClient *http.Client
StreamClient *http.Client
// contains filtered or unexported fields
}
func (*Client) ClearMemory ¶
func (*Client) Compact ¶
func (c *Client) Compact() (*CompactResult, error)
func (*Client) GetMemoryState ¶
func (c *Client) GetMemoryState() (*MemoryState, error)
func (*Client) GetStatus ¶
func (c *Client) GetStatus() (*StatusResult, error)
func (*Client) ListSkills ¶
func (*Client) ResetSession ¶
func (*Client) SetMemoryState ¶
type CompactResult ¶
type Event ¶
type Event interface {
// contains filtered or unexported methods
}
Event is a neutral streaming event emitted by the backend.
type EventConfirm ¶
type EventError ¶
type EventError struct{ Text string }
type EventQuestion ¶
type EventQuestion struct {
ID string
Questions []QuestionItem
}
type EventThink ¶
type EventThink struct{ Text string }
type EventToken ¶
type EventToken struct{ Text string }
type EventToolStart ¶
type EventWardenStart ¶
type EventWardenStart struct{}
type MemoryState ¶
type QuestionItem ¶
type QuestionItem struct {
Question string
Header string
Options []QuestionOption
Multiple bool
}
type QuestionOption ¶
type StatusResult ¶
Click to show internal directories.
Click to hide internal directories.