Documentation
¶
Index ¶
- type Agent
- func (a *Agent) Description() string
- func (a *Agent) Generate(ctx context.Context, sessionID, input string) (any, error)
- func (a *Agent) Graph() *workflow.Graph
- func (a *Agent) Name() string
- func (a *Agent) ResumeRun(ctx context.Context, store workflow.RunStore, runID string) (any, error)
- func (a *Agent) Run(ctx context.Context, input string) (string, error)
- func (a *Agent) StartRun(ctx context.Context, store workflow.RunStore, runID, sessionID string, ...) (any, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent executes a workflow graph behind an agent-like Generate and Run API.
func (*Agent) Description ¶
func (*Agent) ResumeRun ¶ added in v1.13.5
ResumeRun continues a durable graph run from its most recently saved node transition. Completed runs return their saved result without re-executing.
Click to show internal directories.
Click to hide internal directories.