multiple

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hooks

type Hooks struct {
	List []llm.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) ChainEnd

func (h Hooks) ChainEnd(ctx context.Context, outputs map[string]any)

func (Hooks) ChainError

func (h Hooks) ChainError(ctx context.Context, err error)

func (Hooks) ChainStart

func (h Hooks) ChainStart(ctx context.Context, inputs map[string]any)

func (Hooks) ProviderError

func (h Hooks) ProviderError(ctx context.Context, err error)

func (Hooks) ProviderGenerateContentEnd

func (h Hooks) ProviderGenerateContentEnd(ctx context.Context, res *llm.ContentResponse)

func (Hooks) ProviderGenerateContentStart

func (h Hooks) ProviderGenerateContentStart(ctx context.Context, ms []llm.Message)

func (Hooks) ProviderStart

func (h Hooks) ProviderStart(ctx context.Context, prompts []string)

func (Hooks) RetrieverEnd

func (h Hooks) RetrieverEnd(ctx context.Context, query string, documents []llm.Document)

func (Hooks) RetrieverStart

func (h Hooks) RetrieverStart(ctx context.Context, query string)

func (Hooks) StreamingFunc

func (h Hooks) StreamingFunc(ctx context.Context, chunk []byte)

func (Hooks) ToolEnd

func (h Hooks) ToolEnd(ctx context.Context, output string)

func (Hooks) ToolError

func (h Hooks) ToolError(ctx context.Context, err error)

func (Hooks) ToolStart

func (h Hooks) ToolStart(ctx context.Context, input string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL