[router] fix FunctionCallResponse proto, support arguments is null (#9875)

Co-authored-by: forestlee95 <forestlee95@foxmail.com>
This commit is contained in:
Bruce-x-1997
2025-09-01 20:37:15 -07:00
committed by GitHub
co-authored by forestlee95
parent 9a0cac1be0
commit 21e1bc475c
+2 -1
View File
@@ -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<String>, // JSON string
}
// ============= Usage Tracking =============