Documentation ¶
Index ¶
- Variables
- type AgentType
- type ConversationalReactDescription
- type ConversationalReactDescriptionOptions
- type Executor
- func (e Executor) Call(ctx context.Context, values schema.ChainValues, ...) (schema.ChainValues, error)
- func (e Executor) Callbacks() []schema.Callback
- func (e Executor) InputKeys() []string
- func (e Executor) Memory() schema.Memory
- func (e Executor) OutputKeys() []string
- func (e Executor) Type() string
- func (e Executor) Verbose() bool
- type ExecutorOptions
- type OpenAIFunctions
- type OpenAIFunctionsOptions
- type Options
- type ReactDescription
- type ReactDescriptionOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownAgentType = errors.New("unknown agent type") ErrAgentNoReturn = errors.New("no actions or finish was returned by the agent") ErrNotFinished = errors.New("agent not finished before max iterations") ErrExecutorInputNotString = errors.New("input to executor is not a string") ErrInvalidChainReturnType = errors.New("agent chain did not return a string") ErrUnableToParseOutput = errors.New("unable to parse agent output") )
Functions ¶
This section is empty.
Types ¶
type ConversationalReactDescription ¶ added in v0.0.15
type ConversationalReactDescription struct {
// contains filtered or unexported fields
}
func NewConversationalReactDescription ¶ added in v0.0.15
func (*ConversationalReactDescription) InputKeys ¶ added in v0.0.15
func (a *ConversationalReactDescription) InputKeys() []string
func (*ConversationalReactDescription) OutputKeys ¶ added in v0.0.15
func (a *ConversationalReactDescription) OutputKeys() []string
func (*ConversationalReactDescription) Plan ¶ added in v0.0.15
func (a *ConversationalReactDescription) Plan(ctx context.Context, intermediateSteps []schema.AgentStep, inputs map[string]string) ([]*schema.AgentAction, *schema.AgentFinish, error)
type ConversationalReactDescriptionOptions ¶ added in v0.0.15
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func (Executor) Call ¶ added in v0.0.4
func (e Executor) Call(ctx context.Context, values schema.ChainValues, optFns ...func(o *schema.CallOptions)) (schema.ChainValues, error)
func (Executor) OutputKeys ¶
type ExecutorOptions ¶ added in v0.0.4
type ExecutorOptions struct { *schema.CallbackOptions MaxIterations int Memory schema.Memory }
type OpenAIFunctions ¶ added in v0.0.27
type OpenAIFunctions struct {
// contains filtered or unexported fields
}
func NewOpenAIFunctions ¶ added in v0.0.27
func (*OpenAIFunctions) InputKeys ¶ added in v0.0.27
func (a *OpenAIFunctions) InputKeys() []string
func (*OpenAIFunctions) OutputKeys ¶ added in v0.0.27
func (a *OpenAIFunctions) OutputKeys() []string
func (*OpenAIFunctions) Plan ¶ added in v0.0.27
func (a *OpenAIFunctions) Plan(ctx context.Context, intermediateSteps []schema.AgentStep, inputs map[string]string) ([]*schema.AgentAction, *schema.AgentFinish, error)
type OpenAIFunctionsOptions ¶ added in v0.0.27
type OpenAIFunctionsOptions struct {
OutputKey string
}
type Options ¶ added in v0.0.16
type Options struct {
*schema.CallbackOptions
}
type ReactDescription ¶ added in v0.0.24
type ReactDescription struct {
// contains filtered or unexported fields
}
func NewReactDescription ¶ added in v0.0.24
func (*ReactDescription) InputKeys ¶ added in v0.0.24
func (a *ReactDescription) InputKeys() []string
func (*ReactDescription) OutputKeys ¶ added in v0.0.24
func (a *ReactDescription) OutputKeys() []string
func (*ReactDescription) Plan ¶ added in v0.0.24
func (a *ReactDescription) Plan(ctx context.Context, intermediateSteps []schema.AgentStep, inputs map[string]string) ([]*schema.AgentAction, *schema.AgentFinish, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.