Documentation
¶
Index ¶
- Constants
- func Close(tileId string)
- func New(renderer types.Renderer, tile types.Tile)
- func ToolsAdd(t aitypes.Tool)
- type Agent
- func (agent *Agent) AddHistory(title string, response string)
- func (agent *Agent) ChooseTools(cancel types.MenuCallbackT)
- func (agent *Agent) CurrentModelLabel() string
- func (agent *Agent) GetMeta() *aitypes.Meta
- func (agent *Agent) ListModels() ([]ServiceModelIndexT, []string)
- func (agent *Agent) ListModelsInputVariable() types.InputBoxWTVariables
- 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) SetServiceModelFromSelection(selection string) error
- func (agent *Agent) StartServersFromConfig(config *mcp_config.ConfigT) error
- func (agent *Agent) StartServersFromJson(filename string) error
- func (agent *Agent) StartTools(tools []*skills.ToolsT) error
- func (agent *Agent) SwitchServiceModel(modelXRef []ServiceModelIndexT, i int)
- func (agent *Agent) Term() types.Term
- func (agent *Agent) ToolsAdd(t aitypes.Tool) error
- type HistoryItemT
- type HistoryT
- type ServiceModelIndexT
Constants ¶
View Source
const ( LLM_OPENAI = "OpenAI" LLM_ANTHROPIC = "Anthropic" 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) CurrentModelLabel ¶
func (*Agent) ListModels ¶
func (agent *Agent) ListModels() ([]ServiceModelIndexT, []string)
func (*Agent) ListModelsInputVariable ¶
func (agent *Agent) ListModelsInputVariable() types.InputBoxWTVariables
ListModelsInputVariable returns a pre-configured InputBox variable definition that can be used directly in InputBoxWT options.
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 configured runtime and streams text chunks. Use ai package helpers to construct provider-appropriate prompts.
func (*Agent) SelectServiceModel ¶
func (agent *Agent) SelectServiceModel(returnFn func())
func (*Agent) ServiceName ¶
func (*Agent) SetServiceModelFromSelection ¶
SetServiceModelFromSelection sets the active service/model from a list label formatted as "<Service>: <Model>".
func (*Agent) StartServersFromConfig ¶
func (agent *Agent) StartServersFromConfig(config *mcp_config.ConfigT) error
func (*Agent) StartServersFromJson ¶
func (*Agent) SwitchServiceModel ¶
func (agent *Agent) SwitchServiceModel(modelXRef []ServiceModelIndexT, i int)
type HistoryItemT ¶
type HistoryT ¶
type HistoryT []HistoryItemT
type ServiceModelIndexT ¶
type ServiceModelIndexT struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.