macro_rules! tool_audio_content {
($data:expr, $mime_type:expr) => { ... };
}
Expand description
Creates an audio content object for tool responses.
This macro generates a ToolResponseContent::Audio
object with the provided data and MIME type.
ยงExamples
use mcp_core::tool_audio_content;
let audio_data = "base64_encoded_audio".to_string();
let content = tool_audio_content!(audio_data, "audio/mp3".to_string());