Skip to main content

Module invoke

Module invoke 

Source
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 AgentConfig at invocation time, not construction time, enabling flexible agent selection.

Structs§

AgentInput
Input for agent invocation.
AgentOutput
Output from successful agent invocation.

Enums§

AgentInvokeError
Errors that can occur during agent invocation.

Traits§

AgentInvoker
Trait for invoking AI coding agents.