Documentation
¶
Index ¶
- type Dependencies
- type Engine
- func (e *Engine) Run(ctx context.Context, req RunRequest) (RunResult, error)
- func (e *Engine) RunAgent(ctx context.Context, agentName string, input core.AgentInput) (core.AgentOutput, error)
- func (e *Engine) RunStructured(ctx context.Context, req RunRequest) (RunResult, error)
- func (e *Engine) Stream(ctx context.Context, req RunRequest) (<-chan llm.ChatChunk, error)
- type RunRequest
- type RunResult
- type ToolRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies struct {
LLM llm.Gateway
Tools ToolRegistry
Memory map[string]memory.Repository
Runs runstate.Repository
Blobs runstate.BlobStore
Events core.EventSink
HumanGate core.HumanGate
Policy security.Policy
Audit audit.Sink
ToolPolicy governance.ToolPolicy
OutputRedactor governance.OutputRedactor
}
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) RunAgent ¶
func (e *Engine) RunAgent(ctx context.Context, agentName string, input core.AgentInput) (core.AgentOutput, error)
RunAgent executes one configured agent inside an existing run. It reuses the runtime LLM, memory, tool, governance, and observability paths without creating or completing a root RunSnapshot.
func (*Engine) RunStructured ¶
type RunRequest ¶
type RunRequest struct {
RunID string `json:"run_id"`
Agent string `json:"agent,omitempty"`
Prompt string `json:"prompt,omitempty"`
Context json.RawMessage `json:"context,omitempty"`
}
type ToolRegistry ¶
Click to show internal directories.
Click to hide internal directories.