Unverified Commit 21e1bc47 authored by Bruce-x-1997's avatar Bruce-x-1997 Committed by GitHub
Browse files

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


Co-authored-by: default avatarforestlee95 <forestlee95@foxmail.com>
parent 9a0cac1b
...@@ -1565,7 +1565,8 @@ pub enum FunctionCall { ...@@ -1565,7 +1565,8 @@ pub enum FunctionCall {
#[derive(Debug, Clone, Deserialize, Serialize)] #[derive(Debug, Clone, Deserialize, Serialize)]
pub struct FunctionCallResponse { pub struct FunctionCallResponse {
pub name: String, pub name: String,
pub arguments: String, // JSON string #[serde(default)]
pub arguments: Option<String>, // JSON string
} }
// ============= Usage Tracking ============= // ============= Usage Tracking =============
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment