22
33from __future__ import annotations
44
5+ from typing_extensions import Literal
6+
57import httpx
68
79from ..._types import Body , Omit , Query , Headers , NotGiven , omit , not_given
@@ -54,6 +56,7 @@ def create(
5456 agent_config : AmbientAgentConfigParam | Omit = omit ,
5557 agent_uid : str | Omit = omit ,
5658 enabled : bool | Omit = omit ,
59+ mode : Literal ["normal" , "plan" , "orchestrate" ] | Omit = omit ,
5760 prompt : str | Omit = omit ,
5861 team : bool | Omit = omit ,
5962 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -81,6 +84,9 @@ def create(
8184
8285 enabled: Whether the schedule should be active immediately
8386
87+ mode: Optional query mode applied to every triggered run. Defaults to `normal` when
88+ omitted. The server does not infer mode from prompt prefixes such as `/plan`.
89+
8490 prompt: The prompt/instruction for the agent to execute. Required unless
8591 agent_config.skill_spec is provided.
8692
@@ -104,6 +110,7 @@ def create(
104110 "agent_config" : agent_config ,
105111 "agent_uid" : agent_uid ,
106112 "enabled" : enabled ,
113+ "mode" : mode ,
107114 "prompt" : prompt ,
108115 "team" : team ,
109116 },
@@ -158,6 +165,7 @@ def update(
158165 name : str ,
159166 agent_config : AmbientAgentConfigParam | Omit = omit ,
160167 agent_uid : str | Omit = omit ,
168+ mode : Literal ["normal" , "plan" , "orchestrate" ] | Omit = omit ,
161169 prompt : str | Omit = omit ,
162170 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
163171 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -183,6 +191,9 @@ def update(
183191 agent_uid: Agent UID to use as the execution principal for this schedule. Only valid for
184192 team-owned schedules.
185193
194+ mode: Optional query mode applied to every triggered run. Defaults to `normal` when
195+ omitted. The server does not infer mode from prompt prefixes such as `/plan`.
196+
186197 prompt: The prompt/instruction for the agent to execute. Required unless
187198 agent_config.skill_spec is provided.
188199
@@ -205,6 +216,7 @@ def update(
205216 "name" : name ,
206217 "agent_config" : agent_config ,
207218 "agent_uid" : agent_uid ,
219+ "mode" : mode ,
208220 "prompt" : prompt ,
209221 },
210222 schedule_update_params .ScheduleUpdateParams ,
@@ -372,6 +384,7 @@ async def create(
372384 agent_config : AmbientAgentConfigParam | Omit = omit ,
373385 agent_uid : str | Omit = omit ,
374386 enabled : bool | Omit = omit ,
387+ mode : Literal ["normal" , "plan" , "orchestrate" ] | Omit = omit ,
375388 prompt : str | Omit = omit ,
376389 team : bool | Omit = omit ,
377390 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -399,6 +412,9 @@ async def create(
399412
400413 enabled: Whether the schedule should be active immediately
401414
415+ mode: Optional query mode applied to every triggered run. Defaults to `normal` when
416+ omitted. The server does not infer mode from prompt prefixes such as `/plan`.
417+
402418 prompt: The prompt/instruction for the agent to execute. Required unless
403419 agent_config.skill_spec is provided.
404420
@@ -422,6 +438,7 @@ async def create(
422438 "agent_config" : agent_config ,
423439 "agent_uid" : agent_uid ,
424440 "enabled" : enabled ,
441+ "mode" : mode ,
425442 "prompt" : prompt ,
426443 "team" : team ,
427444 },
@@ -476,6 +493,7 @@ async def update(
476493 name : str ,
477494 agent_config : AmbientAgentConfigParam | Omit = omit ,
478495 agent_uid : str | Omit = omit ,
496+ mode : Literal ["normal" , "plan" , "orchestrate" ] | Omit = omit ,
479497 prompt : str | Omit = omit ,
480498 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
481499 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -501,6 +519,9 @@ async def update(
501519 agent_uid: Agent UID to use as the execution principal for this schedule. Only valid for
502520 team-owned schedules.
503521
522+ mode: Optional query mode applied to every triggered run. Defaults to `normal` when
523+ omitted. The server does not infer mode from prompt prefixes such as `/plan`.
524+
504525 prompt: The prompt/instruction for the agent to execute. Required unless
505526 agent_config.skill_spec is provided.
506527
@@ -523,6 +544,7 @@ async def update(
523544 "name" : name ,
524545 "agent_config" : agent_config ,
525546 "agent_uid" : agent_uid ,
547+ "mode" : mode ,
526548 "prompt" : prompt ,
527549 },
528550 schedule_update_params .ScheduleUpdateParams ,
0 commit comments