Skip to main content

tandem_types/
tool.rs

1use serde::{Deserialize, Serialize};
2use serde_json::Value;
3
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct ToolSchema {
6    pub name: String,
7    pub description: String,
8    pub input_schema: Value,
9}
10
11#[derive(Debug, Clone, Serialize, Deserialize)]
12pub struct ToolResult {
13    pub output: String,
14    #[serde(default)]
15    pub metadata: Value,
16}