Revert "feat!: relax tool result structuredContent type (#919)" (#932)

This reverts commit b8a936c4f5.
This commit is contained in:
Dale Seo 2026-06-26 16:00:02 -04:00 • committed by GitHub
commit 4b9bea7e7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@
// ToolUseContent/ToolResultContent are SEP-2577-deprecated; internal references are expected.
#![expect(deprecated)]
use serde::{Deserialize, Serialize};
use serde_json::{Value, json};
use serde_json::json;
use super::{Annotations, Meta, resource::ResourceContents};
@ -207,7 +207,7 @@ pub struct ToolResultContent {
pub tool_use_id: String,
pub content: Vec<ContentBlock>,
#[serde(skip_serializing_if = "Option::is_none")]
pub structured_content: Option<Value>,
pub structured_content: Option<super::JsonObject>,
#[serde(skip_serializing_if = "Option::is_none")]
pub is_error: Option<bool>,
}