earl 0.5.2

AI-safe CLI for AI agents
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde_json::Value;

#[derive(Debug, Clone, PartialEq)]
pub struct CallExpression {
    pub provider: String,
    pub command: String,
    pub positional_args: Vec<Value>,
    pub named_args: Vec<(String, Value)>,
}

impl CallExpression {
    pub fn command_key(&self) -> String {
        format!("{}.{}", self.provider, self.command)
    }
}