Documentation
¶
Index ¶
- type Hooks
- func (h Hooks) AgentAction(ctx context.Context, action llm.AgentAction)
- func (h Hooks) AgentFinish(ctx context.Context, finish llm.AgentFinish)
- func (h Hooks) ChainEnd(ctx context.Context, outputs map[string]any)
- func (h Hooks) ChainError(ctx context.Context, err error)
- func (h Hooks) ChainStart(ctx context.Context, inputs map[string]any)
- func (h Hooks) ProviderError(ctx context.Context, err error)
- func (h Hooks) ProviderGenerateContentEnd(ctx context.Context, res *llm.ContentResponse)
- func (h Hooks) ProviderGenerateContentStart(ctx context.Context, ms []llm.Message)
- func (h Hooks) ProviderStart(ctx context.Context, prompts []string)
- func (h Hooks) RetrieverEnd(ctx context.Context, query string, documents []llm.Document)
- func (h Hooks) RetrieverStart(ctx context.Context, query string)
- func (h Hooks) StreamingFunc(ctx context.Context, chunk []byte)
- func (h Hooks) ToolEnd(ctx context.Context, output string)
- func (h Hooks) ToolError(ctx context.Context, err error)
- func (h Hooks) ToolStart(ctx context.Context, input string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hooks ¶
Hooks that combines multiple Hooks.
func (Hooks) AgentAction ¶
func (h Hooks) AgentAction(ctx context.Context, action llm.AgentAction)
func (Hooks) AgentFinish ¶
func (h Hooks) AgentFinish(ctx context.Context, finish llm.AgentFinish)
func (Hooks) ProviderGenerateContentEnd ¶
func (h Hooks) ProviderGenerateContentEnd(ctx context.Context, res *llm.ContentResponse)
func (Hooks) ProviderGenerateContentStart ¶
func (Hooks) RetrieverEnd ¶
Click to show internal directories.
Click to hide internal directories.