Skip to main content

agent_models/models/
capability.rs

1/// Declarative compatibility capabilities supported by a model.
2///
3/// Capabilities describe supported inputs, outputs, and interactions. They are
4/// provider/model classifications used to match an agent's requirements; they
5/// are not standardized guarantees or measurements of model quality.
6#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, serde::Deserialize, serde::Serialize)]
7#[serde(rename_all = "snake_case")]
8pub enum ModelCapability {
9    /// Conversational text generation and understanding.
10    Chat,
11
12    /// Code generation, explanation, debugging, and programming assistance.
13    ///
14    /// This is an application-level classification rather than a
15    /// standardized API capability.
16    Coding,
17
18    /// Understanding visual inputs, such as images.
19    Vision,
20
21    /// Understanding video inputs and their temporal content.
22    VideoUnderstanding,
23
24    /// Generating images from text or other supported inputs.
25    ImageGeneration,
26
27    /// Converting speech or other audio input into text.
28    Transcription,
29
30    /// Understanding and reasoning about audio inputs beyond transcription.
31    AudioUnderstanding,
32
33    /// Generating spoken audio from text.
34    TextToSpeech,
35
36    /// Generating vector embeddings for text or other supported inputs.
37    Embeddings,
38
39    /// Invoking external functions or tools through model-generated
40    /// tool calls.
41    ToolCalling,
42
43    /// Producing outputs constrained to a structured format, such as JSON
44    /// or a JSON Schema.
45    StructuredOutput,
46
47    /// Classified as supporting multi-step reasoning capabilities.
48    ///
49    /// This is a provider/model classification and does not imply a uniform
50    /// reasoning level or quality guarantee.
51    Reasoning,
52}