From 21e1bc475c3bbef3f70d1a82d70683dfc8b2fe93 Mon Sep 17 00:00:00 2001 From: Bruce-x-1997 Date: Tue, 2 Sep 2025 11:37:15 +0800 Subject: [PATCH] [router] fix FunctionCallResponse proto, support arguments is null (#9875) Co-authored-by: forestlee95 --- sgl-router/src/protocols/spec.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sgl-router/src/protocols/spec.rs b/sgl-router/src/protocols/spec.rs index 986f991cb..a704bf185 100644 --- a/sgl-router/src/protocols/spec.rs +++ b/sgl-router/src/protocols/spec.rs @@ -1565,7 +1565,8 @@ pub enum FunctionCall { #[derive(Debug, Clone, Deserialize, Serialize)] pub struct FunctionCallResponse { pub name: String, - pub arguments: String, // JSON string + #[serde(default)] + pub arguments: Option, // JSON string } // ============= Usage Tracking =============