Documentation ¶
Index ¶
- type Manager
- func (m *Manager) OnChainEnd(outputs *schema.ChainValues) error
- func (m *Manager) OnChainError(chainError error) error
- func (m *Manager) OnChainStart(chainName string, inputs *schema.ChainValues) error
- func (m *Manager) OnLLMEnd(result *schema.LLMResult) error
- func (m *Manager) OnLLMError(llmError error) error
- func (m *Manager) OnLLMNewToken(token string) error
- func (m *Manager) OnLLMStart(llmName string, prompts []string) error
- type OpenAIHandler
- func (o *OpenAIHandler) AlwaysVerbose() bool
- func (h *OpenAIHandler) OnChainEnd(outputs *schema.ChainValues) error
- func (h *OpenAIHandler) OnChainError(chainError error) error
- func (h *OpenAIHandler) OnChainStart(chainName string, inputs *schema.ChainValues) error
- func (o *OpenAIHandler) OnLLMEnd(result *schema.LLMResult) error
- func (h *OpenAIHandler) OnLLMError(llmError error) error
- func (h *OpenAIHandler) OnLLMNewToken(token string) error
- func (h *OpenAIHandler) OnLLMStart(llmName string, prompts []string) error
- func (h *OpenAIHandler) RaiseError() bool
- func (o *OpenAIHandler) String() string
- type StdOutHandler
- func (h *StdOutHandler) AlwaysVerbose() bool
- func (h *StdOutHandler) OnChainEnd(outputs *schema.ChainValues) error
- func (h *StdOutHandler) OnChainError(chainError error) error
- func (h *StdOutHandler) OnChainStart(chainName string, inputs *schema.ChainValues) error
- func (h *StdOutHandler) OnLLMEnd(result *schema.LLMResult) error
- func (h *StdOutHandler) OnLLMError(llmError error) error
- func (h *StdOutHandler) OnLLMNewToken(token string) error
- func (h *StdOutHandler) OnLLMStart(llmName string, prompts []string) error
- func (h *StdOutHandler) RaiseError() bool
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 (*Manager) OnChainEnd ¶ added in v0.0.7
func (m *Manager) OnChainEnd(outputs *schema.ChainValues) error
func (*Manager) OnChainError ¶ added in v0.0.9
func (*Manager) OnChainStart ¶ added in v0.0.7
func (m *Manager) OnChainStart(chainName string, inputs *schema.ChainValues) error
func (*Manager) OnLLMError ¶ added in v0.0.5
func (*Manager) OnLLMNewToken ¶ added in v0.0.5
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 (*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 (*OpenAIHandler) OnLLMNewToken ¶ added in v0.0.5
func (*OpenAIHandler) OnLLMStart ¶ added in v0.0.5
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 (*StdOutHandler) OnChainStart ¶ added in v0.0.7
func (h *StdOutHandler) OnChainStart(chainName string, inputs *schema.ChainValues) error
func (*StdOutHandler) OnLLMError ¶ added in v0.0.7
func (*StdOutHandler) OnLLMNewToken ¶ added in v0.0.7
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
Click to show internal directories.
Click to hide internal directories.