mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
fix: omit structured_content when None instead of serializing as null (#6499)
This commit is contained in:
@@ -133,6 +133,7 @@ pub struct CallToolRequest {
|
||||
#[derive(Serialize, utoipa::ToSchema)]
|
||||
pub struct CallToolResponse {
|
||||
content: Vec<Content>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
structured_content: Option<Value>,
|
||||
is_error: bool,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
|
||||
Reference in New Issue
Block a user