Skip to main content

agent_service/runtime_executor/
agent_runtime_resolver.rs

1//! The contract for resolving configured agent names into runtime instances.
2
3use super::ResolvedAgent;
4
5/// Resolves an agent name to its definition and configured runtime.
6///
7/// The resolver is the composition boundary for agent definitions, model
8/// clients, tool registries, and authorization policies. Its implementation
9/// belongs in the application/bootstrap layer, not in the HTTP transport.
10pub trait AgentRuntimeResolver: Send + Sync + 'static {
11    fn resolve(&self, agent_name: &str) -> Result<ResolvedAgent, String>;
12}