Debian Codegraph @

docs/dyn/ces_v1.projects.locations.apps.agents.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="ces_v1.html">Gemini Enterprise for Customer Experience API</a> . <a href="ces_v1.projects.html">projects</a> . <a href="ces_v1.projects.locations.html">locations</a> . <a href="ces_v1.projects.locations.apps.html">apps</a> . <a href="ces_v1.projects.locations.apps.agents.html">agents</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, agentId=None, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new agent in the given app.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, etag=None, force=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes the specified agent.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets details of the specified agent.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists agents in the given app.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates the specified agent.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, agentId=None, body=None, x__xgafv=None)</code>
106 <pre>Creates a new agent in the given app.
107
108 Args:
109 parent: string, Required. The resource name of the app to create an agent in. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # An agent acts as the fundamental building block that provides instructions to the Large Language Model (LLM) for executing specific tasks.
114 &quot;afterAgentCallbacks&quot;: [ # Optional. The callbacks to execute after the agent is called. 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.
115 { # A callback defines the custom logic to be executed at various stages of agent interaction.
116 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
117 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
118 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
119 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
120 },
121 ],
122 &quot;afterModelCallbacks&quot;: [ # 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.
123 { # A callback defines the custom logic to be executed at various stages of agent interaction.
124 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
125 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
126 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
127 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
128 },
129 ],
130 &quot;afterToolCallbacks&quot;: [ # 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.
131 { # A callback defines the custom logic to be executed at various stages of agent interaction.
132 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
133 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
134 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
135 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
136 },
137 ],
138 &quot;beforeAgentCallbacks&quot;: [ # Optional. The callbacks to execute before the agent is called. 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.
139 { # A callback defines the custom logic to be executed at various stages of agent interaction.
140 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
141 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
142 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
143 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
144 },
145 ],
146 &quot;beforeModelCallbacks&quot;: [ # 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.
147 { # A callback defines the custom logic to be executed at various stages of agent interaction.
148 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
149 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
150 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
151 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
152 },
153 ],
154 &quot;beforeToolCallbacks&quot;: [ # 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.
155 { # A callback defines the custom logic to be executed at various stages of agent interaction.
156 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
157 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
158 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
159 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
160 },
161 ],
162 &quot;childAgents&quot;: [ # Optional. List of child agents in the agent tree. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
163 &quot;A String&quot;,
164 ],
165 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was created.
166 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the agent.
167 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the agent.
168 &quot;etag&quot;: &quot;A String&quot;, # Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
169 &quot;generatedSummary&quot;: &quot;A String&quot;, # Output only. If the agent is generated by the LLM assistant, this field contains a descriptive summary of the generation.
170 &quot;guardrails&quot;: [ # Optional. List of guardrails for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
171 &quot;A String&quot;,
172 ],
173 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Instructions for the LLM model to guide the agent&#x27;s behavior.
174 &quot;llmAgent&quot;: { # Default agent type. The agent uses instructions and callbacks specified in the agent to perform the task using a large language model. # Optional. The default agent type.
175 },
176 &quot;modelSettings&quot;: { # Model settings contains various configurations for the LLM model. # Optional. Configurations for the LLM model.
177 &quot;model&quot;: &quot;A String&quot;, # Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
178 &quot;temperature&quot;: 3.14, # Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model&#x27;s responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
179 },
180 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
181 &quot;remoteDialogflowAgent&quot;: { # The agent which will transfer execution to a remote [Dialogflow CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. The Dialogflow agent will process subsequent user queries until the session ends or flow ends, and the control is transferred back to the parent CES agent. # Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) 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 `[email protected]`.
182 &quot;agent&quot;: &quot;A String&quot;, # Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}`
183 &quot;environmentId&quot;: &quot;A String&quot;, # Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not specified, the draft environment will be used.
184 &quot;flowId&quot;: &quot;A String&quot;, # Optional. The flow ID of the flow in the Dialogflow agent.
185 &quot;inputVariableMapping&quot;: { # Optional. The mapping of the app variables names to the Dialogflow session parameters names to be sent to the Dialogflow agent as input.
186 &quot;a_key&quot;: &quot;A String&quot;,
187 },
188 &quot;languageCodeVariable&quot;: &quot;A String&quot;, # Optional. The name of the variable that contains the language code to be used for the Dialogflow session. If unspecified, the default language code of the Dialogflow agent will be used.
189 &quot;outputVariableMapping&quot;: { # Optional. The mapping of the Dialogflow session parameters names to the app variables names to be sent back to the CES agent after the Dialogflow agent execution ends.
190 &quot;a_key&quot;: &quot;A String&quot;,
191 },
192 &quot;respectResponseInterruptionSettings&quot;: True or False, # Optional. Indicates whether to respect the message-level interruption settings configured in the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the app-level barge-in settings. * If true: only response messages with [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text) set to true will be interruptable, all other messages follow the app-level barge-in settings.
193 },
194 &quot;tools&quot;: [ # Optional. List of available tools for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
195 &quot;A String&quot;,
196 ],
197 &quot;toolsets&quot;: [ # Optional. List of toolsets for the agent.
198 { # A toolset with a selection of its tools.
199 &quot;toolIds&quot;: [ # Optional. The tools IDs to filter the toolset.
200 &quot;A String&quot;,
201 ],
202 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the toolset. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
203 },
204 ],
205 &quot;transferRules&quot;: [ # Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.
206 { # Rule for transferring to a specific agent.
207 &quot;childAgent&quot;: &quot;A String&quot;, # Required. The resource name of the child agent the rule applies to. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
208 &quot;deterministicTransfer&quot;: { # Deterministic transfer rule. When the condition evaluates to true, the transfer occurs. # Optional. A rule that immediately transfers to the target agent when the condition is met.
209 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Optional. A rule that evaluates a session state condition. If the condition evaluates to true, the transfer occurs.
210 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
211 },
212 &quot;pythonCodeCondition&quot;: { # Python code block to evaluate the condition. # Optional. A rule that uses Python code block to evaluate the conditions. If the condition evaluates to true, the transfer occurs.
213 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute.
214 },
215 },
216 &quot;direction&quot;: &quot;A String&quot;, # Required. The direction of the transfer.
217 &quot;disablePlannerTransfer&quot;: { # A rule that prevents the planner from transferring to the target agent. # Optional. Rule that prevents the planner from transferring to the target agent.
218 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Required. If the condition evaluates to true, planner will not be allowed to transfer to the target agent.
219 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
220 },
221 },
222 },
223 ],
224 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was last updated.
225 &quot;validationErrors&quot;: [ # Output only. Misconfigurations or errors in the agent that may affect agent quality.
226 &quot;A String&quot;,
227 ],
228 }
229
230 agentId: string, Optional. The ID to use for the agent, which will become the final component of the agent&#x27;s resource name. If not provided, a unique ID will be automatically assigned for the agent.
231 x__xgafv: string, V1 error format.
232 Allowed values
233 1 - v1 error format
234 2 - v2 error format
235
236 Returns:
237 An object of the form:
238
239 { # An agent acts as the fundamental building block that provides instructions to the Large Language Model (LLM) for executing specific tasks.
240 &quot;afterAgentCallbacks&quot;: [ # Optional. The callbacks to execute after the agent is called. 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.
241 { # A callback defines the custom logic to be executed at various stages of agent interaction.
242 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
243 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
244 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
245 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
246 },
247 ],
248 &quot;afterModelCallbacks&quot;: [ # 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.
249 { # A callback defines the custom logic to be executed at various stages of agent interaction.
250 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
251 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
252 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
253 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
254 },
255 ],
256 &quot;afterToolCallbacks&quot;: [ # 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.
257 { # A callback defines the custom logic to be executed at various stages of agent interaction.
258 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
259 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
260 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
261 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
262 },
263 ],
264 &quot;beforeAgentCallbacks&quot;: [ # Optional. The callbacks to execute before the agent is called. 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.
265 { # A callback defines the custom logic to be executed at various stages of agent interaction.
266 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
267 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
268 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
269 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
270 },
271 ],
272 &quot;beforeModelCallbacks&quot;: [ # 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.
273 { # A callback defines the custom logic to be executed at various stages of agent interaction.
274 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
275 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
276 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
277 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
278 },
279 ],
280 &quot;beforeToolCallbacks&quot;: [ # 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.
281 { # A callback defines the custom logic to be executed at various stages of agent interaction.
282 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
283 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
284 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
285 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
286 },
287 ],
288 &quot;childAgents&quot;: [ # Optional. List of child agents in the agent tree. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
289 &quot;A String&quot;,
290 ],
291 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was created.
292 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the agent.
293 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the agent.
294 &quot;etag&quot;: &quot;A String&quot;, # Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
295 &quot;generatedSummary&quot;: &quot;A String&quot;, # Output only. If the agent is generated by the LLM assistant, this field contains a descriptive summary of the generation.
296 &quot;guardrails&quot;: [ # Optional. List of guardrails for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
297 &quot;A String&quot;,
298 ],
299 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Instructions for the LLM model to guide the agent&#x27;s behavior.
300 &quot;llmAgent&quot;: { # Default agent type. The agent uses instructions and callbacks specified in the agent to perform the task using a large language model. # Optional. The default agent type.
301 },
302 &quot;modelSettings&quot;: { # Model settings contains various configurations for the LLM model. # Optional. Configurations for the LLM model.
303 &quot;model&quot;: &quot;A String&quot;, # Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
304 &quot;temperature&quot;: 3.14, # Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model&#x27;s responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
305 },
306 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
307 &quot;remoteDialogflowAgent&quot;: { # The agent which will transfer execution to a remote [Dialogflow CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. The Dialogflow agent will process subsequent user queries until the session ends or flow ends, and the control is transferred back to the parent CES agent. # Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) 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 `[email protected]`.
308 &quot;agent&quot;: &quot;A String&quot;, # Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}`
309 &quot;environmentId&quot;: &quot;A String&quot;, # Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not specified, the draft environment will be used.
310 &quot;flowId&quot;: &quot;A String&quot;, # Optional. The flow ID of the flow in the Dialogflow agent.
311 &quot;inputVariableMapping&quot;: { # Optional. The mapping of the app variables names to the Dialogflow session parameters names to be sent to the Dialogflow agent as input.
312 &quot;a_key&quot;: &quot;A String&quot;,
313 },
314 &quot;languageCodeVariable&quot;: &quot;A String&quot;, # Optional. The name of the variable that contains the language code to be used for the Dialogflow session. If unspecified, the default language code of the Dialogflow agent will be used.
315 &quot;outputVariableMapping&quot;: { # Optional. The mapping of the Dialogflow session parameters names to the app variables names to be sent back to the CES agent after the Dialogflow agent execution ends.
316 &quot;a_key&quot;: &quot;A String&quot;,
317 },
318 &quot;respectResponseInterruptionSettings&quot;: True or False, # Optional. Indicates whether to respect the message-level interruption settings configured in the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the app-level barge-in settings. * If true: only response messages with [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text) set to true will be interruptable, all other messages follow the app-level barge-in settings.
319 },
320 &quot;tools&quot;: [ # Optional. List of available tools for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
321 &quot;A String&quot;,
322 ],
323 &quot;toolsets&quot;: [ # Optional. List of toolsets for the agent.
324 { # A toolset with a selection of its tools.
325 &quot;toolIds&quot;: [ # Optional. The tools IDs to filter the toolset.
326 &quot;A String&quot;,
327 ],
328 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the toolset. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
329 },
330 ],
331 &quot;transferRules&quot;: [ # Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.
332 { # Rule for transferring to a specific agent.
333 &quot;childAgent&quot;: &quot;A String&quot;, # Required. The resource name of the child agent the rule applies to. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
334 &quot;deterministicTransfer&quot;: { # Deterministic transfer rule. When the condition evaluates to true, the transfer occurs. # Optional. A rule that immediately transfers to the target agent when the condition is met.
335 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Optional. A rule that evaluates a session state condition. If the condition evaluates to true, the transfer occurs.
336 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
337 },
338 &quot;pythonCodeCondition&quot;: { # Python code block to evaluate the condition. # Optional. A rule that uses Python code block to evaluate the conditions. If the condition evaluates to true, the transfer occurs.
339 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute.
340 },
341 },
342 &quot;direction&quot;: &quot;A String&quot;, # Required. The direction of the transfer.
343 &quot;disablePlannerTransfer&quot;: { # A rule that prevents the planner from transferring to the target agent. # Optional. Rule that prevents the planner from transferring to the target agent.
344 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Required. If the condition evaluates to true, planner will not be allowed to transfer to the target agent.
345 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
346 },
347 },
348 },
349 ],
350 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was last updated.
351 &quot;validationErrors&quot;: [ # Output only. Misconfigurations or errors in the agent that may affect agent quality.
352 &quot;A String&quot;,
353 ],
354 }</pre>
355 </div>
356
357 <div class="method">
358 <code class="details" id="delete">delete(name, etag=None, force=None, x__xgafv=None)</code>
359 <pre>Deletes the specified agent.
360
361 Args:
362 name: string, Required. The resource name of the agent to delete. (required)
363 etag: string, Optional. The current etag of the agent. If an etag is not provided, the deletion will overwrite any concurrent changes. If an etag is provided and does not match the current etag of the agent, deletion will be blocked and an ABORTED error will be returned.
364 force: boolean, Optional. Indicates whether to forcefully delete the agent, even if it is still referenced by other app/agents/examples. * If `force = false`, the deletion fails if other agents/examples reference it. * If `force = true`, delete the agent and remove it from all referencing apps/agents/examples.
365 x__xgafv: string, V1 error format.
366 Allowed values
367 1 - v1 error format
368 2 - v2 error format
369
370 Returns:
371 An object of the form:
372
373 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
374 }</pre>
375 </div>
376
377 <div class="method">
378 <code class="details" id="get">get(name, x__xgafv=None)</code>
379 <pre>Gets details of the specified agent.
380
381 Args:
382 name: string, Required. The resource name of the agent to retrieve. (required)
383 x__xgafv: string, V1 error format.
384 Allowed values
385 1 - v1 error format
386 2 - v2 error format
387
388 Returns:
389 An object of the form:
390
391 { # An agent acts as the fundamental building block that provides instructions to the Large Language Model (LLM) for executing specific tasks.
392 &quot;afterAgentCallbacks&quot;: [ # Optional. The callbacks to execute after the agent is called. 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.
393 { # A callback defines the custom logic to be executed at various stages of agent interaction.
394 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
395 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
396 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
397 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
398 },
399 ],
400 &quot;afterModelCallbacks&quot;: [ # 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.
401 { # A callback defines the custom logic to be executed at various stages of agent interaction.
402 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
403 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
404 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
405 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
406 },
407 ],
408 &quot;afterToolCallbacks&quot;: [ # 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.
409 { # A callback defines the custom logic to be executed at various stages of agent interaction.
410 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
411 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
412 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
413 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
414 },
415 ],
416 &quot;beforeAgentCallbacks&quot;: [ # Optional. The callbacks to execute before the agent is called. 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.
417 { # A callback defines the custom logic to be executed at various stages of agent interaction.
418 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
419 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
420 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
421 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
422 },
423 ],
424 &quot;beforeModelCallbacks&quot;: [ # 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.
425 { # A callback defines the custom logic to be executed at various stages of agent interaction.
426 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
427 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
428 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
429 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
430 },
431 ],
432 &quot;beforeToolCallbacks&quot;: [ # 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.
433 { # A callback defines the custom logic to be executed at various stages of agent interaction.
434 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
435 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
436 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
437 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
438 },
439 ],
440 &quot;childAgents&quot;: [ # Optional. List of child agents in the agent tree. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
441 &quot;A String&quot;,
442 ],
443 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was created.
444 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the agent.
445 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the agent.
446 &quot;etag&quot;: &quot;A String&quot;, # Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
447 &quot;generatedSummary&quot;: &quot;A String&quot;, # Output only. If the agent is generated by the LLM assistant, this field contains a descriptive summary of the generation.
448 &quot;guardrails&quot;: [ # Optional. List of guardrails for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
449 &quot;A String&quot;,
450 ],
451 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Instructions for the LLM model to guide the agent&#x27;s behavior.
452 &quot;llmAgent&quot;: { # Default agent type. The agent uses instructions and callbacks specified in the agent to perform the task using a large language model. # Optional. The default agent type.
453 },
454 &quot;modelSettings&quot;: { # Model settings contains various configurations for the LLM model. # Optional. Configurations for the LLM model.
455 &quot;model&quot;: &quot;A String&quot;, # Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
456 &quot;temperature&quot;: 3.14, # Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model&#x27;s responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
457 },
458 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
459 &quot;remoteDialogflowAgent&quot;: { # The agent which will transfer execution to a remote [Dialogflow CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. The Dialogflow agent will process subsequent user queries until the session ends or flow ends, and the control is transferred back to the parent CES agent. # Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) 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 `[email protected]`.
460 &quot;agent&quot;: &quot;A String&quot;, # Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}`
461 &quot;environmentId&quot;: &quot;A String&quot;, # Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not specified, the draft environment will be used.
462 &quot;flowId&quot;: &quot;A String&quot;, # Optional. The flow ID of the flow in the Dialogflow agent.
463 &quot;inputVariableMapping&quot;: { # Optional. The mapping of the app variables names to the Dialogflow session parameters names to be sent to the Dialogflow agent as input.
464 &quot;a_key&quot;: &quot;A String&quot;,
465 },
466 &quot;languageCodeVariable&quot;: &quot;A String&quot;, # Optional. The name of the variable that contains the language code to be used for the Dialogflow session. If unspecified, the default language code of the Dialogflow agent will be used.
467 &quot;outputVariableMapping&quot;: { # Optional. The mapping of the Dialogflow session parameters names to the app variables names to be sent back to the CES agent after the Dialogflow agent execution ends.
468 &quot;a_key&quot;: &quot;A String&quot;,
469 },
470 &quot;respectResponseInterruptionSettings&quot;: True or False, # Optional. Indicates whether to respect the message-level interruption settings configured in the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the app-level barge-in settings. * If true: only response messages with [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text) set to true will be interruptable, all other messages follow the app-level barge-in settings.
471 },
472 &quot;tools&quot;: [ # Optional. List of available tools for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
473 &quot;A String&quot;,
474 ],
475 &quot;toolsets&quot;: [ # Optional. List of toolsets for the agent.
476 { # A toolset with a selection of its tools.
477 &quot;toolIds&quot;: [ # Optional. The tools IDs to filter the toolset.
478 &quot;A String&quot;,
479 ],
480 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the toolset. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
481 },
482 ],
483 &quot;transferRules&quot;: [ # Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.
484 { # Rule for transferring to a specific agent.
485 &quot;childAgent&quot;: &quot;A String&quot;, # Required. The resource name of the child agent the rule applies to. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
486 &quot;deterministicTransfer&quot;: { # Deterministic transfer rule. When the condition evaluates to true, the transfer occurs. # Optional. A rule that immediately transfers to the target agent when the condition is met.
487 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Optional. A rule that evaluates a session state condition. If the condition evaluates to true, the transfer occurs.
488 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
489 },
490 &quot;pythonCodeCondition&quot;: { # Python code block to evaluate the condition. # Optional. A rule that uses Python code block to evaluate the conditions. If the condition evaluates to true, the transfer occurs.
491 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute.
492 },
493 },
494 &quot;direction&quot;: &quot;A String&quot;, # Required. The direction of the transfer.
495 &quot;disablePlannerTransfer&quot;: { # A rule that prevents the planner from transferring to the target agent. # Optional. Rule that prevents the planner from transferring to the target agent.
496 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Required. If the condition evaluates to true, planner will not be allowed to transfer to the target agent.
497 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
498 },
499 },
500 },
501 ],
502 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was last updated.
503 &quot;validationErrors&quot;: [ # Output only. Misconfigurations or errors in the agent that may affect agent quality.
504 &quot;A String&quot;,
505 ],
506 }</pre>
507 </div>
508
509 <div class="method">
510 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
511 <pre>Lists agents in the given app.
512
513 Args:
514 parent: string, Required. The resource name of the app to list agents from. (required)
515 filter: string, Optional. Filter to be applied when listing the agents. See https://google.aip.dev/160 for more details.
516 orderBy: string, Optional. Field to sort by. Only &quot;name&quot; and &quot;create_time&quot; is supported. See https://google.aip.dev/132#ordering for more details.
517 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
518 pageToken: string, Optional. The next_page_token value returned from a previous list AgentService.ListAgents call.
519 x__xgafv: string, V1 error format.
520 Allowed values
521 1 - v1 error format
522 2 - v2 error format
523
524 Returns:
525 An object of the form:
526
527 { # Response message for AgentService.ListAgents.
528 &quot;agents&quot;: [ # The list of agents.
529 { # An agent acts as the fundamental building block that provides instructions to the Large Language Model (LLM) for executing specific tasks.
530 &quot;afterAgentCallbacks&quot;: [ # Optional. The callbacks to execute after the agent is called. 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.
531 { # A callback defines the custom logic to be executed at various stages of agent interaction.
532 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
533 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
534 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
535 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
536 },
537 ],
538 &quot;afterModelCallbacks&quot;: [ # 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.
539 { # A callback defines the custom logic to be executed at various stages of agent interaction.
540 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
541 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
542 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
543 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
544 },
545 ],
546 &quot;afterToolCallbacks&quot;: [ # 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.
547 { # A callback defines the custom logic to be executed at various stages of agent interaction.
548 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
549 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
550 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
551 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
552 },
553 ],
554 &quot;beforeAgentCallbacks&quot;: [ # Optional. The callbacks to execute before the agent is called. 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.
555 { # A callback defines the custom logic to be executed at various stages of agent interaction.
556 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
557 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
558 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
559 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
560 },
561 ],
562 &quot;beforeModelCallbacks&quot;: [ # 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.
563 { # A callback defines the custom logic to be executed at various stages of agent interaction.
564 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
565 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
566 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
567 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
568 },
569 ],
570 &quot;beforeToolCallbacks&quot;: [ # 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.
571 { # A callback defines the custom logic to be executed at various stages of agent interaction.
572 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
573 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
574 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
575 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
576 },
577 ],
578 &quot;childAgents&quot;: [ # Optional. List of child agents in the agent tree. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
579 &quot;A String&quot;,
580 ],
581 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was created.
582 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the agent.
583 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the agent.
584 &quot;etag&quot;: &quot;A String&quot;, # Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
585 &quot;generatedSummary&quot;: &quot;A String&quot;, # Output only. If the agent is generated by the LLM assistant, this field contains a descriptive summary of the generation.
586 &quot;guardrails&quot;: [ # Optional. List of guardrails for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
587 &quot;A String&quot;,
588 ],
589 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Instructions for the LLM model to guide the agent&#x27;s behavior.
590 &quot;llmAgent&quot;: { # Default agent type. The agent uses instructions and callbacks specified in the agent to perform the task using a large language model. # Optional. The default agent type.
591 },
592 &quot;modelSettings&quot;: { # Model settings contains various configurations for the LLM model. # Optional. Configurations for the LLM model.
593 &quot;model&quot;: &quot;A String&quot;, # Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
594 &quot;temperature&quot;: 3.14, # Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model&#x27;s responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
595 },
596 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
597 &quot;remoteDialogflowAgent&quot;: { # The agent which will transfer execution to a remote [Dialogflow CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. The Dialogflow agent will process subsequent user queries until the session ends or flow ends, and the control is transferred back to the parent CES agent. # Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) 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 `[email protected]`.
598 &quot;agent&quot;: &quot;A String&quot;, # Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}`
599 &quot;environmentId&quot;: &quot;A String&quot;, # Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not specified, the draft environment will be used.
600 &quot;flowId&quot;: &quot;A String&quot;, # Optional. The flow ID of the flow in the Dialogflow agent.
601 &quot;inputVariableMapping&quot;: { # Optional. The mapping of the app variables names to the Dialogflow session parameters names to be sent to the Dialogflow agent as input.
602 &quot;a_key&quot;: &quot;A String&quot;,
603 },
604 &quot;languageCodeVariable&quot;: &quot;A String&quot;, # Optional. The name of the variable that contains the language code to be used for the Dialogflow session. If unspecified, the default language code of the Dialogflow agent will be used.
605 &quot;outputVariableMapping&quot;: { # Optional. The mapping of the Dialogflow session parameters names to the app variables names to be sent back to the CES agent after the Dialogflow agent execution ends.
606 &quot;a_key&quot;: &quot;A String&quot;,
607 },
608 &quot;respectResponseInterruptionSettings&quot;: True or False, # Optional. Indicates whether to respect the message-level interruption settings configured in the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the app-level barge-in settings. * If true: only response messages with [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text) set to true will be interruptable, all other messages follow the app-level barge-in settings.
609 },
610 &quot;tools&quot;: [ # Optional. List of available tools for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
611 &quot;A String&quot;,
612 ],
613 &quot;toolsets&quot;: [ # Optional. List of toolsets for the agent.
614 { # A toolset with a selection of its tools.
615 &quot;toolIds&quot;: [ # Optional. The tools IDs to filter the toolset.
616 &quot;A String&quot;,
617 ],
618 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the toolset. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
619 },
620 ],
621 &quot;transferRules&quot;: [ # Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.
622 { # Rule for transferring to a specific agent.
623 &quot;childAgent&quot;: &quot;A String&quot;, # Required. The resource name of the child agent the rule applies to. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
624 &quot;deterministicTransfer&quot;: { # Deterministic transfer rule. When the condition evaluates to true, the transfer occurs. # Optional. A rule that immediately transfers to the target agent when the condition is met.
625 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Optional. A rule that evaluates a session state condition. If the condition evaluates to true, the transfer occurs.
626 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
627 },
628 &quot;pythonCodeCondition&quot;: { # Python code block to evaluate the condition. # Optional. A rule that uses Python code block to evaluate the conditions. If the condition evaluates to true, the transfer occurs.
629 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute.
630 },
631 },
632 &quot;direction&quot;: &quot;A String&quot;, # Required. The direction of the transfer.
633 &quot;disablePlannerTransfer&quot;: { # A rule that prevents the planner from transferring to the target agent. # Optional. Rule that prevents the planner from transferring to the target agent.
634 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Required. If the condition evaluates to true, planner will not be allowed to transfer to the target agent.
635 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
636 },
637 },
638 },
639 ],
640 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was last updated.
641 &quot;validationErrors&quot;: [ # Output only. Misconfigurations or errors in the agent that may affect agent quality.
642 &quot;A String&quot;,
643 ],
644 },
645 ],
646 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as ListAgentsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.
647 }</pre>
648 </div>
649
650 <div class="method">
651 <code class="details" id="list_next">list_next()</code>
652 <pre>Retrieves the next page of results.
653
654 Args:
655 previous_request: The request for the previous page. (required)
656 previous_response: The response from the request for the previous page. (required)
657
658 Returns:
659 A request object that you can call &#x27;execute()&#x27; on to request the next
660 page. Returns None if there are no more items in the collection.
661 </pre>
662 </div>
663
664 <div class="method">
665 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
666 <pre>Updates the specified agent.
667
668 Args:
669 name: string, Identifier. The unique identifier of the agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` (required)
670 body: object, The request body.
671 The object takes the form of:
672
673 { # An agent acts as the fundamental building block that provides instructions to the Large Language Model (LLM) for executing specific tasks.
674 &quot;afterAgentCallbacks&quot;: [ # Optional. The callbacks to execute after the agent is called. 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.
675 { # A callback defines the custom logic to be executed at various stages of agent interaction.
676 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
677 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
678 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
679 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
680 },
681 ],
682 &quot;afterModelCallbacks&quot;: [ # 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.
683 { # A callback defines the custom logic to be executed at various stages of agent interaction.
684 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
685 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
686 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
687 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
688 },
689 ],
690 &quot;afterToolCallbacks&quot;: [ # 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.
691 { # A callback defines the custom logic to be executed at various stages of agent interaction.
692 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
693 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
694 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
695 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
696 },
697 ],
698 &quot;beforeAgentCallbacks&quot;: [ # Optional. The callbacks to execute before the agent is called. 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.
699 { # A callback defines the custom logic to be executed at various stages of agent interaction.
700 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
701 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
702 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
703 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
704 },
705 ],
706 &quot;beforeModelCallbacks&quot;: [ # 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.
707 { # A callback defines the custom logic to be executed at various stages of agent interaction.
708 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
709 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
710 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
711 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
712 },
713 ],
714 &quot;beforeToolCallbacks&quot;: [ # 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.
715 { # A callback defines the custom logic to be executed at various stages of agent interaction.
716 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
717 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
718 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
719 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
720 },
721 ],
722 &quot;childAgents&quot;: [ # Optional. List of child agents in the agent tree. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
723 &quot;A String&quot;,
724 ],
725 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was created.
726 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the agent.
727 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the agent.
728 &quot;etag&quot;: &quot;A String&quot;, # Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
729 &quot;generatedSummary&quot;: &quot;A String&quot;, # Output only. If the agent is generated by the LLM assistant, this field contains a descriptive summary of the generation.
730 &quot;guardrails&quot;: [ # Optional. List of guardrails for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
731 &quot;A String&quot;,
732 ],
733 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Instructions for the LLM model to guide the agent&#x27;s behavior.
734 &quot;llmAgent&quot;: { # Default agent type. The agent uses instructions and callbacks specified in the agent to perform the task using a large language model. # Optional. The default agent type.
735 },
736 &quot;modelSettings&quot;: { # Model settings contains various configurations for the LLM model. # Optional. Configurations for the LLM model.
737 &quot;model&quot;: &quot;A String&quot;, # Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
738 &quot;temperature&quot;: 3.14, # Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model&#x27;s responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
739 },
740 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
741 &quot;remoteDialogflowAgent&quot;: { # The agent which will transfer execution to a remote [Dialogflow CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. The Dialogflow agent will process subsequent user queries until the session ends or flow ends, and the control is transferred back to the parent CES agent. # Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) 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 `[email protected]`.
742 &quot;agent&quot;: &quot;A String&quot;, # Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}`
743 &quot;environmentId&quot;: &quot;A String&quot;, # Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not specified, the draft environment will be used.
744 &quot;flowId&quot;: &quot;A String&quot;, # Optional. The flow ID of the flow in the Dialogflow agent.
745 &quot;inputVariableMapping&quot;: { # Optional. The mapping of the app variables names to the Dialogflow session parameters names to be sent to the Dialogflow agent as input.
746 &quot;a_key&quot;: &quot;A String&quot;,
747 },
748 &quot;languageCodeVariable&quot;: &quot;A String&quot;, # Optional. The name of the variable that contains the language code to be used for the Dialogflow session. If unspecified, the default language code of the Dialogflow agent will be used.
749 &quot;outputVariableMapping&quot;: { # Optional. The mapping of the Dialogflow session parameters names to the app variables names to be sent back to the CES agent after the Dialogflow agent execution ends.
750 &quot;a_key&quot;: &quot;A String&quot;,
751 },
752 &quot;respectResponseInterruptionSettings&quot;: True or False, # Optional. Indicates whether to respect the message-level interruption settings configured in the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the app-level barge-in settings. * If true: only response messages with [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text) set to true will be interruptable, all other messages follow the app-level barge-in settings.
753 },
754 &quot;tools&quot;: [ # Optional. List of available tools for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
755 &quot;A String&quot;,
756 ],
757 &quot;toolsets&quot;: [ # Optional. List of toolsets for the agent.
758 { # A toolset with a selection of its tools.
759 &quot;toolIds&quot;: [ # Optional. The tools IDs to filter the toolset.
760 &quot;A String&quot;,
761 ],
762 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the toolset. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
763 },
764 ],
765 &quot;transferRules&quot;: [ # Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.
766 { # Rule for transferring to a specific agent.
767 &quot;childAgent&quot;: &quot;A String&quot;, # Required. The resource name of the child agent the rule applies to. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
768 &quot;deterministicTransfer&quot;: { # Deterministic transfer rule. When the condition evaluates to true, the transfer occurs. # Optional. A rule that immediately transfers to the target agent when the condition is met.
769 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Optional. A rule that evaluates a session state condition. If the condition evaluates to true, the transfer occurs.
770 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
771 },
772 &quot;pythonCodeCondition&quot;: { # Python code block to evaluate the condition. # Optional. A rule that uses Python code block to evaluate the conditions. If the condition evaluates to true, the transfer occurs.
773 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute.
774 },
775 },
776 &quot;direction&quot;: &quot;A String&quot;, # Required. The direction of the transfer.
777 &quot;disablePlannerTransfer&quot;: { # A rule that prevents the planner from transferring to the target agent. # Optional. Rule that prevents the planner from transferring to the target agent.
778 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Required. If the condition evaluates to true, planner will not be allowed to transfer to the target agent.
779 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
780 },
781 },
782 },
783 ],
784 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was last updated.
785 &quot;validationErrors&quot;: [ # Output only. Misconfigurations or errors in the agent that may affect agent quality.
786 &quot;A String&quot;,
787 ],
788 }
789
790 updateMask: string, Optional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated.
791 x__xgafv: string, V1 error format.
792 Allowed values
793 1 - v1 error format
794 2 - v2 error format
795
796 Returns:
797 An object of the form:
798
799 { # An agent acts as the fundamental building block that provides instructions to the Large Language Model (LLM) for executing specific tasks.
800 &quot;afterAgentCallbacks&quot;: [ # Optional. The callbacks to execute after the agent is called. 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.
801 { # A callback defines the custom logic to be executed at various stages of agent interaction.
802 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
803 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
804 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
805 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
806 },
807 ],
808 &quot;afterModelCallbacks&quot;: [ # 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.
809 { # A callback defines the custom logic to be executed at various stages of agent interaction.
810 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
811 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
812 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
813 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
814 },
815 ],
816 &quot;afterToolCallbacks&quot;: [ # 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.
817 { # A callback defines the custom logic to be executed at various stages of agent interaction.
818 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
819 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
820 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
821 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
822 },
823 ],
824 &quot;beforeAgentCallbacks&quot;: [ # Optional. The callbacks to execute before the agent is called. 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.
825 { # A callback defines the custom logic to be executed at various stages of agent interaction.
826 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
827 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
828 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
829 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
830 },
831 ],
832 &quot;beforeModelCallbacks&quot;: [ # 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.
833 { # A callback defines the custom logic to be executed at various stages of agent interaction.
834 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
835 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
836 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
837 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
838 },
839 ],
840 &quot;beforeToolCallbacks&quot;: [ # 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.
841 { # A callback defines the custom logic to be executed at various stages of agent interaction.
842 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the callback.
843 &quot;disabled&quot;: True or False, # Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
844 &quot;proactiveExecutionEnabled&quot;: True or False, # Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
845 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute for the callback.
846 },
847 ],
848 &quot;childAgents&quot;: [ # Optional. List of child agents in the agent tree. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
849 &quot;A String&quot;,
850 ],
851 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was created.
852 &quot;description&quot;: &quot;A String&quot;, # Optional. Human-readable description of the agent.
853 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the agent.
854 &quot;etag&quot;: &quot;A String&quot;, # Etag used to ensure the object hasn&#x27;t changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
855 &quot;generatedSummary&quot;: &quot;A String&quot;, # Output only. If the agent is generated by the LLM assistant, this field contains a descriptive summary of the generation.
856 &quot;guardrails&quot;: [ # Optional. List of guardrails for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
857 &quot;A String&quot;,
858 ],
859 &quot;instruction&quot;: &quot;A String&quot;, # Optional. Instructions for the LLM model to guide the agent&#x27;s behavior.
860 &quot;llmAgent&quot;: { # Default agent type. The agent uses instructions and callbacks specified in the agent to perform the task using a large language model. # Optional. The default agent type.
861 },
862 &quot;modelSettings&quot;: { # Model settings contains various configurations for the LLM model. # Optional. Configurations for the LLM model.
863 &quot;model&quot;: &quot;A String&quot;, # Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
864 &quot;temperature&quot;: 3.14, # Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model&#x27;s responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
865 },
866 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique identifier of the agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
867 &quot;remoteDialogflowAgent&quot;: { # The agent which will transfer execution to a remote [Dialogflow CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. The Dialogflow agent will process subsequent user queries until the session ends or flow ends, and the control is transferred back to the parent CES agent. # Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) 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 `[email protected]`.
868 &quot;agent&quot;: &quot;A String&quot;, # Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}`
869 &quot;environmentId&quot;: &quot;A String&quot;, # Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not specified, the draft environment will be used.
870 &quot;flowId&quot;: &quot;A String&quot;, # Optional. The flow ID of the flow in the Dialogflow agent.
871 &quot;inputVariableMapping&quot;: { # Optional. The mapping of the app variables names to the Dialogflow session parameters names to be sent to the Dialogflow agent as input.
872 &quot;a_key&quot;: &quot;A String&quot;,
873 },
874 &quot;languageCodeVariable&quot;: &quot;A String&quot;, # Optional. The name of the variable that contains the language code to be used for the Dialogflow session. If unspecified, the default language code of the Dialogflow agent will be used.
875 &quot;outputVariableMapping&quot;: { # Optional. The mapping of the Dialogflow session parameters names to the app variables names to be sent back to the CES agent after the Dialogflow agent execution ends.
876 &quot;a_key&quot;: &quot;A String&quot;,
877 },
878 &quot;respectResponseInterruptionSettings&quot;: True or False, # Optional. Indicates whether to respect the message-level interruption settings configured in the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the app-level barge-in settings. * If true: only response messages with [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text) set to true will be interruptable, all other messages follow the app-level barge-in settings.
879 },
880 &quot;tools&quot;: [ # Optional. List of available tools for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
881 &quot;A String&quot;,
882 ],
883 &quot;toolsets&quot;: [ # Optional. List of toolsets for the agent.
884 { # A toolset with a selection of its tools.
885 &quot;toolIds&quot;: [ # Optional. The tools IDs to filter the toolset.
886 &quot;A String&quot;,
887 ],
888 &quot;toolset&quot;: &quot;A String&quot;, # Required. The resource name of the toolset. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
889 },
890 ],
891 &quot;transferRules&quot;: [ # Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.
892 { # Rule for transferring to a specific agent.
893 &quot;childAgent&quot;: &quot;A String&quot;, # Required. The resource name of the child agent the rule applies to. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
894 &quot;deterministicTransfer&quot;: { # Deterministic transfer rule. When the condition evaluates to true, the transfer occurs. # Optional. A rule that immediately transfers to the target agent when the condition is met.
895 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Optional. A rule that evaluates a session state condition. If the condition evaluates to true, the transfer occurs.
896 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
897 },
898 &quot;pythonCodeCondition&quot;: { # Python code block to evaluate the condition. # Optional. A rule that uses Python code block to evaluate the conditions. If the condition evaluates to true, the transfer occurs.
899 &quot;pythonCode&quot;: &quot;A String&quot;, # Required. The python code to execute.
900 },
901 },
902 &quot;direction&quot;: &quot;A String&quot;, # Required. The direction of the transfer.
903 &quot;disablePlannerTransfer&quot;: { # A rule that prevents the planner from transferring to the target agent. # Optional. Rule that prevents the planner from transferring to the target agent.
904 &quot;expressionCondition&quot;: { # Expression condition based on session state. # Required. If the condition evaluates to true, planner will not be allowed to transfer to the target agent.
905 &quot;expression&quot;: &quot;A String&quot;, # Required. The string representation of cloud.api.Expression condition.
906 },
907 },
908 },
909 ],
910 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the agent was last updated.
911 &quot;validationErrors&quot;: [ # Output only. Misconfigurations or errors in the agent that may affect agent quality.
912 &quot;A String&quot;,
913 ],
914 }</pre>
915 </div>
916
917 </body></html>