[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-02 11:37:15 +08:00
committed by GitHub
parent 9a0cac1be0
commit 21e1bc475c

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 =============