Skip to content

Commit d69a372

Browse files
authored
fix: omit structured_content when None instead of serializing as null (#6499)
1 parent 3cadb9c commit d69a372

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crates/goose-server/src/routes/agent.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ pub struct CallToolRequest {
133133
#[derive(Serialize, utoipa::ToSchema)]
134134
pub struct CallToolResponse {
135135
content: Vec<Content>,
136+
#[serde(skip_serializing_if = "Option::is_none")]
136137
structured_content: Option<Value>,
137138
is_error: bool,
138139
#[serde(skip_serializing_if = "Option::is_none")]

0 commit comments

Comments
 (0)