ceylon_runtime/llm/
types.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4pub struct Message {
5    pub role: String, // "user", "assistant", "tool"
6    pub content: String,
7}
8
9#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct ToolSpec {
11    pub name: String,
12    pub description: String,
13    pub input_schema: serde_json::Value, // JSON schema describing expected input
14}