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