agent_runtime/model/agent_model.rs
1//! Runtime-facing interface for completing a model turn.
2
3use crate::{ModelRequest, ModelTurn};
4use agent_models::ModelError;
5use async_trait::async_trait;
6
7/// Interface used by the agent runtime to interact with a model.
8#[async_trait]
9pub trait AgentModel: Send + Sync {
10 async fn complete(&self, request: ModelRequest) -> Result<ModelTurn, ModelError>;
11}