callbackx

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogHandle

type LogHandle struct {
	tlog.Logger
}

func NewLogHandle

func NewLogHandle(logger tlog.Logger) *LogHandle

func (*LogHandle) HandleAgentAction

func (l *LogHandle) HandleAgentAction(ctx context.Context, action schema.AgentAction)

func (*LogHandle) HandleAgentFinish

func (l *LogHandle) HandleAgentFinish(ctx context.Context, finish schema.AgentFinish)

func (*LogHandle) HandleChainEnd

func (l *LogHandle) HandleChainEnd(ctx context.Context, outputs map[string]any)

func (*LogHandle) HandleChainError

func (l *LogHandle) HandleChainError(ctx context.Context, err error)

func (*LogHandle) HandleChainStart

func (l *LogHandle) HandleChainStart(ctx context.Context, inputs map[string]any)

func (*LogHandle) HandleLLMError

func (l *LogHandle) HandleLLMError(ctx context.Context, err error)

func (*LogHandle) HandleLLMGenerateContentEnd

func (l *LogHandle) HandleLLMGenerateContentEnd(ctx context.Context, res *llms.ContentResponse)

func (*LogHandle) HandleLLMGenerateContentStart

func (l *LogHandle) HandleLLMGenerateContentStart(ctx context.Context, ms []llms.MessageContent)

func (*LogHandle) HandleLLMStart

func (l *LogHandle) HandleLLMStart(ctx context.Context, prompts []string)

func (*LogHandle) HandleRetrieverEnd

func (l *LogHandle) HandleRetrieverEnd(ctx context.Context, query string, documents []schema.Document)

func (*LogHandle) HandleRetrieverStart

func (l *LogHandle) HandleRetrieverStart(ctx context.Context, query string)

func (*LogHandle) HandleStreamingFunc

func (l *LogHandle) HandleStreamingFunc(ctx context.Context, chunk []byte)

func (*LogHandle) HandleText

func (l *LogHandle) HandleText(ctx context.Context, text string)

func (*LogHandle) HandleToolEnd

func (l *LogHandle) HandleToolEnd(ctx context.Context, output string)

func (*LogHandle) HandleToolError

func (l *LogHandle) HandleToolError(ctx context.Context, err error)

func (*LogHandle) HandleToolStart

func (l *LogHandle) HandleToolStart(ctx context.Context, input string)

type TitTokenHandle

type TitTokenHandle struct {
	callbacks.SimpleHandler
	// contains filtered or unexported fields
}

func NewTitTokenHandle

func NewTitTokenHandle(logger tlog.Logger) *TitTokenHandle

func (*TitTokenHandle) HandleLLMGenerateContentEnd

func (l *TitTokenHandle) HandleLLMGenerateContentEnd(ctx context.Context, res *llms.ContentResponse)

Jump to

Keyboard shortcuts

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