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

ClientFunction

import type { ClientFunction } from "https://googleapis.deno.dev/v1/ces:v1.ts";

Represents a client-side function that the agent can invoke. When the tool is chosen by the agent, control is handed off to the client. The client is responsible for executing the function and returning the result as a ToolResponse to continue the interaction with the agent.

interface ClientFunction {
description?: string;
name?: string;
parameters?: Schema;
response?: Schema;
}

§Properties

§
description?: string
[src]

Optional. The function description.

§
name?: string
[src]

Required. The function name.

§
parameters?: Schema
[src]

Optional. The schema of the function parameters.

§
response?: Schema
[src]

Optional. The schema of the function response.