@@ -146,6 +146,16 @@ export interface AgentResponse {
146146 */
147147 description ?: string | null ;
148148
149+ /**
150+ * Default cloud environment ID for runs executed by this agent. The precedence
151+ * order for environment resolution is:
152+ *
153+ * 1. The environment specified on the run itself
154+ * 2. The agent's default environment
155+ * 3. An empty environment
156+ */
157+ environment_id ?: string ;
158+
149159 /**
150160 * Authentication secrets for third-party harnesses. Only the secret for the
151161 * harness specified gets injected into the environment.
@@ -263,6 +273,12 @@ export interface CreateAgentRequest {
263273 */
264274 description ?: string | null ;
265275
276+ /**
277+ * Optional default cloud environment ID for runs executed by this agent. The
278+ * environment must be owned by the same team as the agent.
279+ */
280+ environment_id ?: string | null ;
281+
266282 /**
267283 * Authentication secrets for third-party harnesses. Only the secret for the
268284 * harness specified gets injected into the environment.
@@ -412,6 +428,12 @@ export interface UpdateAgentRequest {
412428 */
413429 description ?: string | null ;
414430
431+ /**
432+ * Replacement default cloud environment ID. Omit or pass `null` to leave
433+ * unchanged, or pass an empty string to clear.
434+ */
435+ environment_id ?: string | null ;
436+
415437 /**
416438 * Authentication secrets for third-party harnesses. Only the secret for the
417439 * harness specified gets injected into the environment.
@@ -553,6 +575,12 @@ export interface AgentCreateParams {
553575 */
554576 description ?: string | null ;
555577
578+ /**
579+ * Optional default cloud environment ID for runs executed by this agent. The
580+ * environment must be owned by the same team as the agent.
581+ */
582+ environment_id ?: string | null ;
583+
556584 /**
557585 * Authentication secrets for third-party harnesses. Only the secret for the
558586 * harness specified gets injected into the environment.
@@ -691,6 +719,12 @@ export interface AgentUpdateParams {
691719 */
692720 description ?: string | null ;
693721
722+ /**
723+ * Replacement default cloud environment ID. Omit or pass `null` to leave
724+ * unchanged, or pass an empty string to clear.
725+ */
726+ environment_id ?: string | null ;
727+
694728 /**
695729 * Authentication secrets for third-party harnesses. Only the secret for the
696730 * harness specified gets injected into the environment.
0 commit comments