Change summary
crates/google_ai/src/google_ai.rs | 8 ++++++++
crates/language_models/src/provider/google.rs | 1 +
2 files changed, 9 insertions(+)
Detailed changes
@@ -202,6 +202,7 @@ pub enum Part {
InlineDataPart(InlineDataPart),
FunctionCallPart(FunctionCallPart),
FunctionResponsePart(FunctionResponsePart),
+ ThoughtPart(ThoughtPart),
}
#[derive(Debug, Serialize, Deserialize)]
@@ -235,6 +236,13 @@ pub struct FunctionResponsePart {
pub function_response: FunctionResponse,
}
+#[derive(Debug, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
+pub struct ThoughtPart {
+ pub thought: bool,
+ pub thought_signature: String,
+}
+
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CitationSource {
@@ -620,6 +620,7 @@ impl GoogleEventMapper {
)));
}
Part::FunctionResponsePart(_) => {}
+ Part::ThoughtPart(_) => {}
});
}
}