agent2: Fix tool schemas for Gemini (#36507)
Release Notes: - N/A --------- Co-authored-by: Agus Zubiaga <agus@zed.dev>
This commit is contained in:
parent
1af47a563f
commit
6b6eb11643
4 changed files with 48 additions and 4 deletions
|
@ -266,7 +266,7 @@ pub struct CitationMetadata {
|
|||
pub struct PromptFeedback {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub block_reason: Option<String>,
|
||||
pub safety_ratings: Vec<SafetyRating>,
|
||||
pub safety_ratings: Option<Vec<SafetyRating>>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub block_reason_message: Option<String>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue