callback

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(callbacks []schema.Callback, verbose bool) *Manager

func (*Manager) OnChainEnd added in v0.0.7

func (m *Manager) OnChainEnd(outputs *schema.ChainValues) error

func (*Manager) OnChainError added in v0.0.9

func (m *Manager) OnChainError(chainError error) error

func (*Manager) OnChainStart added in v0.0.7

func (m *Manager) OnChainStart(chainName string, inputs *schema.ChainValues) error

func (*Manager) OnLLMEnd added in v0.0.5

func (m *Manager) OnLLMEnd(result *schema.LLMResult) error

func (*Manager) OnLLMError added in v0.0.5

func (m *Manager) OnLLMError(llmError error) error

func (*Manager) OnLLMNewToken added in v0.0.5

func (m *Manager) OnLLMNewToken(token string) error

func (*Manager) OnLLMStart

func (m *Manager) OnLLMStart(llmName string, prompts []string) error

type OpenAIHandler added in v0.0.5

type OpenAIHandler struct {
	// contains filtered or unexported fields
}

func NewOpenAIHandler added in v0.0.7

func NewOpenAIHandler() *OpenAIHandler

func (*OpenAIHandler) AlwaysVerbose added in v0.0.5

func (o *OpenAIHandler) AlwaysVerbose() bool

func (*OpenAIHandler) OnChainEnd added in v0.0.7

func (h *OpenAIHandler) OnChainEnd(outputs *schema.ChainValues) error

func (*OpenAIHandler) OnChainError added in v0.0.7

func (h *OpenAIHandler) OnChainError(chainError error) error

func (*OpenAIHandler) OnChainStart added in v0.0.7

func (h *OpenAIHandler) OnChainStart(chainName string, inputs *schema.ChainValues) error

func (*OpenAIHandler) OnLLMEnd added in v0.0.5

func (o *OpenAIHandler) OnLLMEnd(result *schema.LLMResult) error

func (*OpenAIHandler) OnLLMError added in v0.0.7

func (h *OpenAIHandler) OnLLMError(llmError error) error

func (*OpenAIHandler) OnLLMNewToken added in v0.0.5

func (h *OpenAIHandler) OnLLMNewToken(token string) error

func (*OpenAIHandler) OnLLMStart added in v0.0.5

func (h *OpenAIHandler) OnLLMStart(llmName string, prompts []string) error

func (*OpenAIHandler) RaiseError added in v0.0.7

func (h *OpenAIHandler) RaiseError() bool

func (*OpenAIHandler) String added in v0.0.5

func (o *OpenAIHandler) String() string

type StdOutHandler added in v0.0.7

type StdOutHandler struct {
	// contains filtered or unexported fields
}

func NewStdOutHandler added in v0.0.7

func NewStdOutHandler() *StdOutHandler

func (*StdOutHandler) AlwaysVerbose added in v0.0.7

func (h *StdOutHandler) AlwaysVerbose() bool

func (*StdOutHandler) OnChainEnd added in v0.0.7

func (h *StdOutHandler) OnChainEnd(outputs *schema.ChainValues) error

func (*StdOutHandler) OnChainError added in v0.0.7

func (h *StdOutHandler) OnChainError(chainError error) error

func (*StdOutHandler) OnChainStart added in v0.0.7

func (h *StdOutHandler) OnChainStart(chainName string, inputs *schema.ChainValues) error

func (*StdOutHandler) OnLLMEnd added in v0.0.7

func (h *StdOutHandler) OnLLMEnd(result *schema.LLMResult) error

func (*StdOutHandler) OnLLMError added in v0.0.7

func (h *StdOutHandler) OnLLMError(llmError error) error

func (*StdOutHandler) OnLLMNewToken added in v0.0.7

func (h *StdOutHandler) OnLLMNewToken(token string) error

func (*StdOutHandler) OnLLMStart added in v0.0.7

func (h *StdOutHandler) OnLLMStart(llmName string, prompts []string) error

func (*StdOutHandler) RaiseError added in v0.0.7

func (h *StdOutHandler) RaiseError() bool

Jump to

Keyboard shortcuts

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