Skip to content

Commit 69bf2bd

Browse files
IvanLHcopybara-github
authored andcommitted
feat: include Function in FunctionResultSubContent
PiperOrigin-RevId: 1005139669
1 parent de41371 commit 69bf2bd

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/main/java/com/google/genai/gaos/models/interactions/Function.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* <p>A tool that can be used by the model.
4040
*/
41-
public class Function implements Tool, AgentTool {
41+
public class Function implements FunctionResultSubcontent, Tool, AgentTool {
4242
/**
4343
* A description of the function.
4444
*/

‎src/main/java/com/google/genai/gaos/models/interactions/FunctionResultSubcontentTypeIdResolver.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public FunctionResultSubcontentTypeIdResolver() {
3737
private void initializeTypeMap() {
3838
registerType("audio", AudioContent.class);
3939
registerType("document", DocumentContent.class);
40+
registerType("function", Function.class);
4041
registerType("image", ImageContent.class);
4142
registerType("text", TextContent.class);
4243
registerType("video", VideoContent.class);

0 commit comments

Comments
 (0)