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

GoogleCloudAiplatformV1FunctionResponse

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

The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a FunctionCall made based on model prediction.

interface GoogleCloudAiplatformV1FunctionResponse {
name?: string;
response?: {
[key: string]: any;
}
;
scheduling?:
| "SCHEDULING_UNSPECIFIED"
| "SILENT"
| "WHEN_IDLE"
| "INTERRUPT";
}

§Properties

§
name?: string
[src]

Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.

§

Optional. Ordered Parts that constitute a function response. Parts may have different IANA MIME types.

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

Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.

§
scheduling?: "SCHEDULING_UNSPECIFIED" | "SILENT" | "WHEN_IDLE" | "INTERRUPT"
[src]

Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.