log

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeminiKLogHandler

type GeminiKLogHandler struct {
	*KLogHandler
}

GeminiKLogHandler is a callback handler for gemini

func (GeminiKLogHandler) HandleLLMGenerateContentStart

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

type KLogHandler

type KLogHandler struct {
	LogLevel int
}

KLogHandler is a callback handler that prints to klog v3

func (KLogHandler) HandleAgentAction

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

func (KLogHandler) HandleAgentFinish

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

func (KLogHandler) HandleChainEnd

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

func (KLogHandler) HandleChainError

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

func (KLogHandler) HandleChainStart

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

func (KLogHandler) HandleLLMError

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

func (KLogHandler) HandleLLMGenerateContentEnd

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

func (KLogHandler) HandleLLMGenerateContentStart

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

func (KLogHandler) HandleLLMStart

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

func (KLogHandler) HandleRetrieverEnd

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

func (KLogHandler) HandleRetrieverStart

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

func (KLogHandler) HandleStreamingFunc

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

func (KLogHandler) HandleText

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

func (KLogHandler) HandleToolEnd

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

func (KLogHandler) HandleToolError

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

func (KLogHandler) HandleToolStart

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

Jump to

Keyboard shortcuts

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