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