callbacks

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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) 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)

Jump to

Keyboard shortcuts

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