Documentation ¶
Index ¶
- type GeminiKLogHandler
- type KLogHandler
- func (l KLogHandler) HandleAgentAction(ctx context.Context, action schema.AgentAction)
- func (l KLogHandler) HandleAgentFinish(ctx context.Context, finish schema.AgentFinish)
- func (l KLogHandler) HandleChainEnd(ctx context.Context, outputs map[string]any)
- func (l KLogHandler) HandleChainError(ctx context.Context, err error)
- func (l KLogHandler) HandleChainStart(ctx context.Context, inputs map[string]any)
- func (l KLogHandler) HandleLLMError(ctx context.Context, err error)
- func (l KLogHandler) HandleLLMGenerateContentEnd(ctx context.Context, res *llms.ContentResponse)
- func (l KLogHandler) HandleLLMGenerateContentStart(ctx context.Context, ms []llms.MessageContent)
- func (l KLogHandler) HandleLLMStart(ctx context.Context, prompts []string)
- func (l KLogHandler) HandleRetrieverEnd(ctx context.Context, query string, documents []schema.Document)
- func (l KLogHandler) HandleRetrieverStart(ctx context.Context, query string)
- func (l KLogHandler) HandleStreamingFunc(ctx context.Context, chunk []byte)
- func (l KLogHandler) HandleText(ctx context.Context, text string)
- func (l KLogHandler) HandleToolEnd(ctx context.Context, output string)
- func (l KLogHandler) HandleToolError(ctx context.Context, err error)
- func (l KLogHandler) HandleToolStart(ctx context.Context, input string)
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 (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)
Click to show internal directories.
Click to hide internal directories.