vibe-tests 0.0.1

Integration test framework for MCP servers with LLM-powered tool calling.
Documentation
//! Ollama chat message types.
//! Serialized into Ollama chat API JSON requests.

use serde::Serialize;

/// Chat message sent to Ollama API.
#[derive(Debug, Serialize)]
pub struct ChatMessage {
    /// Role: "user", "assistant", or "tool".
    pub role: String,
    /// Message content or tool result.
    pub content: String,
}
impl ChatMessage {
    /// Creates a user message.
    pub fn user(content: impl Into<String>) -> Self {
        Self {
            role: "user".to_string(),
            content: content.into(),
        }
    }

    /// Creates an assistant message.
    pub fn assistant(content: impl Into<String>) -> Self {
        Self {
            role: "assistant".to_string(),
            content: content.into(),
        }
    }

    /// Creates a tool result message.
    pub fn tool(content: impl Into<String>) -> Self {
        Self {
            role: "tool".to_string(),
            content: content.into(),
        }
    }
}