@@ -67,6 +67,20 @@ export class Agent extends APIResource {
6767 headers : buildHeaders ( [ { Accept : '*/*' } , options ?. headers ] ) ,
6868 } ) ;
6969 }
70+
71+ /**
72+ * Retrieve a single agent by its unique identifier. The response includes an
73+ * `available` flag indicating whether the agent is within the team's plan limit
74+ * and may be used for runs.
75+ *
76+ * @example
77+ * ```ts
78+ * const agentResponse = await client.agent.agent.get('uid');
79+ * ```
80+ */
81+ get ( uid : string , options ?: RequestOptions ) : APIPromise < AgentResponse > {
82+ return this . _client . get ( path `/agent/identities/${ uid } ` , options ) ;
83+ }
7084}
7185
7286export interface AgentResponse {
@@ -101,6 +115,16 @@ export interface AgentResponse {
101115 */
102116 uid : string ;
103117
118+ /**
119+ * Base model for runs executed by this agent. The precedence order for model
120+ * resolution is:
121+ *
122+ * 1. The model specified on the run itself
123+ * 2. The agent's base model
124+ * 3. The team's default model
125+ */
126+ base_model ?: string ;
127+
104128 /**
105129 * Optional description of the agent
106130 */
@@ -125,6 +149,11 @@ export interface CreateAgentRequest {
125149 */
126150 name : string ;
127151
152+ /**
153+ * Optional base model for runs executed by this agent.
154+ */
155+ base_model ?: string | null ;
156+
128157 /**
129158 * Optional description of the agent
130159 */
@@ -171,6 +200,12 @@ export interface ListAgentIdentitiesResponse {
171200 * - Non-empty: replace the field wholesale with the provided value.
172201 */
173202export interface UpdateAgentRequest {
203+ /**
204+ * Replacement base model. Omit or pass `null` to leave unchanged, or pass an empty
205+ * string to clear.
206+ */
207+ base_model ?: string | null ;
208+
174209 /**
175210 * Replacement description. Omit or pass `null` to leave unchanged, or use an empty
176211 * value to clear.
@@ -213,6 +248,11 @@ export interface AgentCreateParams {
213248 */
214249 name : string ;
215250
251+ /**
252+ * Optional base model for runs executed by this agent.
253+ */
254+ base_model ?: string | null ;
255+
216256 /**
217257 * Optional description of the agent
218258 */
@@ -248,6 +288,12 @@ export namespace AgentCreateParams {
248288}
249289
250290export interface AgentUpdateParams {
291+ /**
292+ * Replacement base model. Omit or pass `null` to leave unchanged, or pass an empty
293+ * string to clear.
294+ */
295+ base_model ?: string | null ;
296+
251297 /**
252298 * Replacement description. Omit or pass `null` to leave unchanged, or use an empty
253299 * value to clear.
0 commit comments