Support Images and PDFs (#447)

This commit is contained in:
Jacob Richman
2025-05-20 13:02:41 -07:00
committed by GitHub
parent 4002e980d9
commit 716f7875a2
14 changed files with 965 additions and 56 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { FunctionDeclaration, Schema } from '@google/genai';
import { FunctionDeclaration, PartListUnion, Schema } from '@google/genai';
/**
* Interface representing the base Tool functionality
@@ -152,7 +152,7 @@ export interface ToolResult {
* Content meant to be included in LLM history.
* This should represent the factual outcome of the tool execution.
*/
llmContent: string;
llmContent: PartListUnion;
/**
* Markdown string for user display.