Documentation
¶
Index ¶
- Constants
- func Close(tileId string)
- func New(renderer types.Renderer, tile types.Tile)
- func ToolsAdd(t Tool)
- type Agent
- func (agent *Agent) AddHistory(title string, response string)
- func (agent *Agent) ChooseTools(cancel types.MenuCallbackT)
- func (agent *Agent) MaxIterations() int
- func (agent *Agent) McpMenu(cancel types.MenuCallbackT)
- func (agent *Agent) McpServerAdd(server string, client client)
- func (agent *Agent) McpServerExists(server string) bool
- func (agent *Agent) ModelName() string
- func (agent *Agent) Reload()
- func (agent *Agent) Renderer() types.Renderer
- func (agent *Agent) RunLLMWithStream(ctx context.Context, prompt string, streamCallback func(string)) (result string, err error)
- func (agent *Agent) SelectServiceModel(returnFn func())
- func (agent *Agent) ServiceName() string
- func (agent *Agent) SkillStartTools(skill *skills.SkillT) error
- func (agent *Agent) StartServersFromConfig(config *mcp_config.ConfigT) error
- func (agent *Agent) StartServersFromJson(filename string) error
- func (agent *Agent) Term() types.Term
- func (agent *Agent) ToolsAdd(t Tool) error
- type HistoryItemT
- type HistoryT
- type Meta
- type Tool
Constants ¶
View Source
const ( LLM_OPENAI = "ChatGPT" LLM_ANTHROPIC = "Claude" LLM_OLLAMA = "Ollama" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
func (*Agent) AddHistory ¶
func (*Agent) ChooseTools ¶
func (agent *Agent) ChooseTools(cancel types.MenuCallbackT)
func (*Agent) MaxIterations ¶
func (*Agent) McpMenu ¶
func (agent *Agent) McpMenu(cancel types.MenuCallbackT)
func (*Agent) McpServerAdd ¶
func (*Agent) McpServerExists ¶
func (*Agent) RunLLMWithStream ¶
func (agent *Agent) RunLLMWithStream(ctx context.Context, prompt string, streamCallback func(string)) (result string, err error)
RunLLMWithStream calls the LLM with the prompt string and streams responses. Use `ai` package to create specific prompts.
func (*Agent) SelectServiceModel ¶
func (agent *Agent) SelectServiceModel(returnFn func())
func (*Agent) ServiceName ¶
func (*Agent) StartServersFromConfig ¶
func (agent *Agent) StartServersFromConfig(config *mcp_config.ConfigT) error
func (*Agent) StartServersFromJson ¶
type HistoryItemT ¶
type HistoryT ¶
type HistoryT []HistoryItemT
Click to show internal directories.
Click to hide internal directories.