Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FailbackCommandParser ¶
type FailbackCommandParser[T any] struct { // contains filtered or unexported fields }
func NewFailbackCommandParser ¶
func NewFailbackCommandParser[T any](parsers ...Parser[T]) *FailbackCommandParser[T]
func (*FailbackCommandParser[T]) ParseCommand ¶
func (p *FailbackCommandParser[T]) ParseCommand(ctx context.Context, req *types.ToolRequest[T]) (Command, error)
type LocalCommandParser ¶
func NewLocalCommandParser ¶
func NewLocalCommandParser[T any]() *LocalCommandParser[T]
func (*LocalCommandParser[T]) ParseCommand ¶
func (p *LocalCommandParser[T]) ParseCommand(ctx context.Context, req *types.ToolRequest[T]) (Command, error)
type ToolBasedCommandParser ¶
type ToolBasedCommandParser[T any] struct { // contains filtered or unexported fields }
func NewToolBasedCommandParser ¶
func NewToolBasedCommandParser[T any](chatModel model.ToolCallingChatModel) (*ToolBasedCommandParser[T], error)
func (*ToolBasedCommandParser[T]) ParseCommand ¶
func (p *ToolBasedCommandParser[T]) ParseCommand(ctx context.Context, req *types.ToolRequest[T]) (Command, error)
Click to show internal directories.
Click to hide internal directories.