Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndJourneyTool ¶
type EndJourneyTool struct{}
EndJourneyTool completes the current workflow.
func NewEndJourneyTool ¶
func NewEndJourneyTool() *EndJourneyTool
NewEndJourneyTool creates a new end_journey tool.
func (*EndJourneyTool) Definition ¶
func (t *EndJourneyTool) Definition() chat.Tool
Definition returns the tool definition for the chat API.
func (*EndJourneyTool) Execute ¶
func (t *EndJourneyTool) Execute(input json.RawMessage) (tools.EndJourneyResult, error)
Execute runs the tool and returns a typed result.
type QueryTool ¶
type QueryTool struct {
// contains filtered or unexported fields
}
QueryTool executes read-only SQL queries against the local catalog.
func NewQueryTool ¶
NewQueryTool creates a new query tool.
func (*QueryTool) Definition ¶
Definition returns the tool definition for the chat API.
func (*QueryTool) Execute ¶
func (t *QueryTool) Execute(input json.RawMessage) (tools.QueryResult, error)
Execute runs the query and returns a typed result.
type Registry ¶
type Registry struct {
Query *QueryTool
StartJourney *StartJourneyTool
EndJourney *EndJourneyTool
}
Registry holds tool instances and provides definitions.
func (*Registry) Definitions ¶
Definitions returns tool definitions for the chat API.
type StartJourneyTool ¶
type StartJourneyTool struct{}
StartJourneyTool begins a guided workflow.
func NewStartJourneyTool ¶
func NewStartJourneyTool() *StartJourneyTool
NewStartJourneyTool creates a new start_journey tool.
func (*StartJourneyTool) Definition ¶
func (t *StartJourneyTool) Definition() chat.Tool
Definition returns the tool definition for the chat API.
func (*StartJourneyTool) Execute ¶
func (t *StartJourneyTool) Execute(input json.RawMessage) (tools.StartJourneyResult, error)
Execute runs the tool and returns a typed result.
func (*StartJourneyTool) Name ¶
func (t *StartJourneyTool) Name() string
Name returns the tool name.