Documentation ¶
Index ¶
- Constants
- func AgentCommand(cfg *llm.Config, role, content string) error
- func AgentHelp(cfg *llm.Config, role, content string) error
- func GetUserInput(cfg *llm.Config) (string, error)
- func HandleCommand(cfg *llm.Config, role, content string) error
- func Info(cfg *llm.Config) error
- func LaunchEditor(editor string) (string, error)
- func ListAgents(cfg *llm.Config) error
- func ListCommands(cfg *llm.Config) error
- func ProcessBashScript(cfg *llm.Config, script string) error
- func Setup(cfg *llm.Config) error
- func SlashCommand(cfg *llm.Config, role, content string) error
- func ValidatePath(path string) (string, error)
- type Agent
- type AiderAgent
- type AskAgent
- type AskAgentPrompt
- type ChatMessage
- type ClipboardProvider
- type Editor
- type EditorProvider
- type EvalAgent
- type GitAgent
- type GptrAgent
- type HelpAgent
- type OhAgent
- type ScriptAgent
- type SeekAgent
- type SqlAgent
- type WorkspaceCheck
Constants ¶
View Source
const ( // read from clipboard ClipboardInputRedirect = "=" // write to clipboard ClipboardOutputRedirect = "=+" )
clipboard redirection
View Source
const StdinInputRedirect = "-"
Variables ¶
This section is empty.
Functions ¶
func LaunchEditor ¶
func ListAgents ¶
func ListCommands ¶
func ValidatePath ¶
ValidatePath returns the absolute path of the given path. If the path is empty, it returns an error. If the path is not an absolute path, it converts it to an absolute path. If the path does not exist, it creates the path and returns the absolute path. If the path exists, it returns its absolute path.
Types ¶
type AiderAgent ¶
func NewAiderAgent ¶
func NewAiderAgent(cfg *llm.Config, role, content string) (*AiderAgent, error)
func (*AiderAgent) Send ¶
func (r *AiderAgent) Send(ctx context.Context, input string) (*ChatMessage, error)
type AskAgent ¶
func (*AskAgent) GeneratePrompt ¶
type AskAgentPrompt ¶
type ChatMessage ¶
type ClipboardProvider ¶
type ClipboardProvider = cb.ClipboardProvider
type EditorProvider ¶
func NewEditor ¶
func NewEditor(editor string) EditorProvider
type ScriptAgent ¶
func NewScriptAgent ¶
func NewScriptAgent(cfg *llm.Config, role, content string) (*ScriptAgent, error)
func (*ScriptAgent) Send ¶
func (r *ScriptAgent) Send(ctx context.Context, command, input string) (*ChatMessage, error)
type WorkspaceCheck ¶
Click to show internal directories.
Click to hide internal directories.