Agent
import type { Agent } from "https://googleapis.deno.dev/v1/ces:v1.ts";An agent acts as the fundamental building block that provides instructions to the Large Language Model (LLM) for executing specific tasks.
§Properties
Optional. The callbacks to execute after the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
Optional. The callbacks to execute after the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
Optional. The callbacks to execute before the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
Optional. The callbacks to execute before the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
Optional. List of child agents in the agent tree. Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
Output only. If the agent is generated by the LLM assistant, this field contains a descriptive summary of the generation.
Optional. List of guardrails for the agent. Format:
projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}
Optional. The default agent type.
Optional. Configurations for the LLM model.
Identifier. The unique identifier of the agent. Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
Optional. The remote
Dialogflow
agent to be used for the agent execution. If this field is set, all other
agent level properties will be ignored. Note: If the Dialogflow agent is in
a different project from the app, you should grant
roles/dialogflow.client to the CES service agent
service-@gcp-sa-ces.iam.gserviceaccount.com.
Optional. List of available tools for the agent. Format:
projects/{project}/locations/{location}/apps/{app}/tools/{tool}
Optional. List of toolsets for the agent.
Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.