Versions in this module Expand all Collapse all v0 v0.0.2 Jan 29, 2026 Changes in this version + const DefaultParseCommandSystemPromptTemplate + type ParserOption func(*commandParserOptions) + func WithCommandSystemPrompt(systemPrompt string) ParserOption + func WithCommandSystemPromptTemplate(systemPromptTemplate string) ParserOption v0.0.1 Jan 29, 2026 Changes in this version + type Command string + const Cancel + const Confirm + const DoNothing + const Edit + type FailbackCommandParser struct + func NewFailbackCommandParser[T any](parsers ...Parser[T]) *FailbackCommandParser[T] + func (p *FailbackCommandParser[T]) ParseCommand(ctx context.Context, req *types.ToolRequest[T]) (Command, error) + type LocalCommandParser struct + CancelKeywords []string + ConfirmKeywords []string + func NewLocalCommandParser[T any]() *LocalCommandParser[T] + func (p *LocalCommandParser[T]) ParseCommand(ctx context.Context, req *types.ToolRequest[T]) (Command, error) + type Parser interface + ParseCommand func(ctx context.Context, req *types.ToolRequest[T]) (Command, error) + type ToolBasedCommandParser struct + func NewToolBasedCommandParser[T any](chatModel model.ToolCallingChatModel) (*ToolBasedCommandParser[T], error) + func (p *ToolBasedCommandParser[T]) ParseCommand(ctx context.Context, req *types.ToolRequest[T]) (Command, error)