Skip to main content

rightkit_agent_engine_protocol/
tool.rs

1use serde::{Deserialize, Serialize};
2
3/// A single tool invocation requested by the model. `arguments_json` is the raw,
4/// untrusted JSON the model produced — it is parsed/validated at dispatch time, never trusted here.
5#[derive(Debug, Clone, Serialize, Deserialize)]
6#[serde(rename_all = "camelCase")]
7pub struct ToolCall {
8    pub id: String,
9    pub name: String,
10    pub arguments_json: String,
11}