ToolResponse
import type { ToolResponse } from "https://googleapis.deno.dev/v1/ces:v1.ts";The execution result of a specific tool from the client or the agent.
interface ToolResponse {
readonly displayName?: string;
id?: string;
response?: {};
[key: string]: any;
tool?: string;
toolsetTool?: ToolsetTool;
}§Properties
§
response?: {}
[src][key: string]: any;
Required. The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.
§
tool?: string
[src]Optional. The name of the tool to execute. Format:
projects/{project}/locations/{location}/apps/{app}/tools/{tool}
§
toolsetTool?: ToolsetTool
[src]Optional. The toolset tool that got executed.