Skip to main content

Module traits

Module traits 

Source
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§

AgentOutput
Structured output returned by an AgentRunner.
HistoryMessage
A prior conversation turn forwarded to persistent-session agents.
RunContext
Per-invocation context threaded from orchestrator to agent runner.
SearchResult
A search hit returned by a SearchProvider.

Enums§

ServiceTier
Access tiers controlling which users/transports may invoke a tool.
ToolResult
Structured result of a tool execution.

Traits§

AgentRunner
Runs a task against a named agent.
SearchProvider
Web/code search backend abstraction.
SkillResolver
Resolves named skills to their Markdown content.
ToolExecutor
Object-safe executor interface for a single named tool.