Documentation
¶
Index ¶
- Constants
- func Close(tileId string)
- func Init(renderer types.Renderer)
- func ToolsAdd(t Tool)
- type HistoryItemT
- type HistoryT
- type Meta
- func (meta *Meta) AddHistory(title string, response string)
- func (meta *Meta) ChooseTools(cancel types.MenuCallbackT)
- func (meta *Meta) McpServerAdd(server string, client client)
- func (meta *Meta) McpServerExists(server string) bool
- func (meta *Meta) ModelName() string
- func (meta *Meta) ModelNext()
- func (meta *Meta) Reload()
- func (meta *Meta) RunLLM(prompt string, sticky types.Notification) (result string, err error)
- func (meta *Meta) ServiceName() string
- func (meta *Meta) ServiceNext()
- func (meta *Meta) ToolsAdd(t Tool) error
- type Tool
Constants ¶
View Source
const ( LLM_OPENAI = "ChatGPT" LLM_ANTHROPIC = "Claude" LLM_OLLAMA = "Ollama" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HistoryItemT ¶
type HistoryT ¶
type HistoryT []HistoryItemT
type Meta ¶
type Meta struct {
History HistoryT
Term types.Term
Renderer types.Renderer
CmdLine string
Pwd string
OutputBlock string
InsertAfterRowId uint64
// contains filtered or unexported fields
}
func NewAgentMeta ¶
func NewAgentMeta() *Meta
func (*Meta) AddHistory ¶
func (*Meta) ChooseTools ¶
func (meta *Meta) ChooseTools(cancel types.MenuCallbackT)
func (*Meta) McpServerAdd ¶
func (*Meta) McpServerExists ¶
func (*Meta) RunLLM ¶
RunLLM calls the LLM with the prompt string. Use `ai` package to create specific prompts.
func (*Meta) ServiceName ¶
func (*Meta) ServiceNext ¶
func (meta *Meta) ServiceNext()
Click to show internal directories.
Click to hide internal directories.