Documentation ¶
Index ¶
- Variables
- type AgentType
- 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 ZeroShotReactDescriptionAgent
- type ZeroShotReactDescriptionAgentOptions
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 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) (schema.ChainValues, error)
func (Executor) OutputKeys ¶
type ExecutorOptions ¶ added in v0.0.4
type ZeroShotReactDescriptionAgent ¶
type ZeroShotReactDescriptionAgent struct {
// contains filtered or unexported fields
}
func (*ZeroShotReactDescriptionAgent) InputKeys ¶
func (a *ZeroShotReactDescriptionAgent) InputKeys() []string
func (*ZeroShotReactDescriptionAgent) OutputKeys ¶
func (a *ZeroShotReactDescriptionAgent) OutputKeys() []string
func (*ZeroShotReactDescriptionAgent) Plan ¶
func (a *ZeroShotReactDescriptionAgent) Plan(ctx context.Context, intermediateSteps []schema.AgentStep, inputs map[string]string) ([]schema.AgentAction, *schema.AgentFinish, error)
Click to show internal directories.
Click to hide internal directories.