1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! Ollama API response types. //! Deserialized from Ollama chat API JSON responses. use serde::Deserialize; /// Top-level response from Ollama chat API. #[derive(Debug, Deserialize)] pub struct OllamaResponse { pub message: OllamaMessageResponse, } /// Message within Ollama chat response. #[derive(Debug, Deserialize)] pub struct OllamaMessageResponse { pub content: String, }