Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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

§
readonly displayName?: string
[src]

Output only. Display name of the tool.

§
id?: string
[src]

Optional. The matching ID of the tool call the response is for.

§
response?: {
[key: string]: any;
}
[src]

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.