Documentation
¶
Index ¶
- type AutomationRunHandler
- func (a *AutomationRunHandler) HandleLLMError(_ context.Context, err error)
- func (a *AutomationRunHandler) HandleLLMGenerateContentEnd(_ context.Context, res *llms.ContentResponse)
- func (a *AutomationRunHandler) HandleLLMGenerateContentStart(_ context.Context, ms []llms.MessageContent)
- func (a *AutomationRunHandler) HandleStreamingFunc(ctx context.Context, chunk []byte)
- func (a *AutomationRunHandler) HandleToolEnd(_ context.Context, info string)
- func (a *AutomationRunHandler) HandleToolError(_ context.Context, err error)
- func (a *AutomationRunHandler) HandleToolStart(_ context.Context, info string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutomationRunHandler ¶
type AutomationRunHandler struct {
callbacks.SimpleHandler
LogsWriter io.Writer
Debug bool
DebugOpenAICalls bool
sync.Mutex
}
AutomationRunHandler is a callback handler used for observing and logging LLM runs for an automation.
func (*AutomationRunHandler) HandleLLMError ¶
func (a *AutomationRunHandler) HandleLLMError(_ context.Context, err error)
func (*AutomationRunHandler) HandleLLMGenerateContentEnd ¶
func (a *AutomationRunHandler) HandleLLMGenerateContentEnd(_ context.Context, res *llms.ContentResponse)
func (*AutomationRunHandler) HandleLLMGenerateContentStart ¶
func (a *AutomationRunHandler) HandleLLMGenerateContentStart(_ context.Context, ms []llms.MessageContent)
func (*AutomationRunHandler) HandleStreamingFunc ¶ added in v0.1.15
func (a *AutomationRunHandler) HandleStreamingFunc(ctx context.Context, chunk []byte)
func (*AutomationRunHandler) HandleToolEnd ¶
func (a *AutomationRunHandler) HandleToolEnd(_ context.Context, info string)
func (*AutomationRunHandler) HandleToolError ¶
func (a *AutomationRunHandler) HandleToolError(_ context.Context, err error)
func (*AutomationRunHandler) HandleToolStart ¶
func (a *AutomationRunHandler) HandleToolStart(_ context.Context, info string)
Click to show internal directories.
Click to hide internal directories.