Expand description
Abstract agent invocation contract.
This module defines the AgentInvoker trait and supporting types that provide
a domain-shaped abstraction for AI coding agent invocation. Boundary adapters
(claude, codex, opencode, etc.) implement this trait, allowing domain code
to depend on the abstraction rather than concrete provider implementations.
§Design Principles
- Domain-shaped I/O: Input/output types contain plain values that are meaningful in the domain context, not raw process types.
- Object-safe: The trait is designed for dynamic dispatch via
dyn AgentInvoker. - Capability injection: Callers provide the
AgentConfigat invocation time, not construction time, enabling flexible agent selection.
Structs§
- Agent
Input - Input for agent invocation.
- Agent
Output - Output from successful agent invocation.
Enums§
- Agent
Invoke Error - Errors that can occur during agent invocation.
Traits§
- Agent
Invoker - Trait for invoking AI coding agents.