Expand description
Core trait abstractions for tool execution, agent running, search, and skills.
Why: DI through traits lets tcode swap concrete implementations (subprocess
runner vs. in-process mock; Brave vs. Tavily search; fs skill store vs.
embedded) without changing call sites. This is the SOA seam that keeps
the workflow engine and PM loop testable.
What: Defines ToolExecutor, AgentRunner, SearchProvider, and
SkillResolver. All are object-safe (dyn-able) and Send + Sync.
Test: Mock impls of each trait are constructed in unit tests for
ToolRegistry, delegating commands, and related code.
Structs§
- Agent
Output - Structured output returned by an
AgentRunner. - History
Message - A prior conversation turn forwarded to persistent-session agents.
- RunContext
- Per-invocation context threaded from orchestrator to agent runner.
- Search
Result - A search hit returned by a
SearchProvider.
Enums§
- Service
Tier - Access tiers controlling which users/transports may invoke a tool.
- Tool
Result - Structured result of a tool execution.
Traits§
- Agent
Runner - Runs a task against a named agent.
- Search
Provider - Web/code search backend abstraction.
- Skill
Resolver - Resolves named skills to their Markdown content.
- Tool
Executor - Object-safe executor interface for a single named tool.