@@ -222,6 +222,42 @@ def delete(
222222 cast_to = NoneType ,
223223 )
224224
225+ def get (
226+ self ,
227+ uid : str ,
228+ * ,
229+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
230+ # The extra values given here take precedence over values defined on the client or passed to this method.
231+ extra_headers : Headers | None = None ,
232+ extra_query : Query | None = None ,
233+ extra_body : Body | None = None ,
234+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
235+ ) -> AgentResponse :
236+ """Retrieve a single agent by its unique identifier.
237+
238+ The response includes an
239+ `available` flag indicating whether the agent is within the team's plan limit
240+ and may be used for runs.
241+
242+ Args:
243+ extra_headers: Send extra headers
244+
245+ extra_query: Add additional query parameters to the request
246+
247+ extra_body: Add additional JSON properties to the request
248+
249+ timeout: Override the client-level default timeout for this request, in seconds
250+ """
251+ if not uid :
252+ raise ValueError (f"Expected a non-empty value for `uid` but received { uid !r} " )
253+ return self ._get (
254+ path_template ("/agent/identities/{uid}" , uid = uid ),
255+ options = make_request_options (
256+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
257+ ),
258+ cast_to = AgentResponse ,
259+ )
260+
225261
226262class AsyncAgentResource (AsyncAPIResource ):
227263 """Operations for running and managing cloud agents"""
@@ -421,6 +457,42 @@ async def delete(
421457 cast_to = NoneType ,
422458 )
423459
460+ async def get (
461+ self ,
462+ uid : str ,
463+ * ,
464+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
465+ # The extra values given here take precedence over values defined on the client or passed to this method.
466+ extra_headers : Headers | None = None ,
467+ extra_query : Query | None = None ,
468+ extra_body : Body | None = None ,
469+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
470+ ) -> AgentResponse :
471+ """Retrieve a single agent by its unique identifier.
472+
473+ The response includes an
474+ `available` flag indicating whether the agent is within the team's plan limit
475+ and may be used for runs.
476+
477+ Args:
478+ extra_headers: Send extra headers
479+
480+ extra_query: Add additional query parameters to the request
481+
482+ extra_body: Add additional JSON properties to the request
483+
484+ timeout: Override the client-level default timeout for this request, in seconds
485+ """
486+ if not uid :
487+ raise ValueError (f"Expected a non-empty value for `uid` but received { uid !r} " )
488+ return await self ._get (
489+ path_template ("/agent/identities/{uid}" , uid = uid ),
490+ options = make_request_options (
491+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
492+ ),
493+ cast_to = AgentResponse ,
494+ )
495+
424496
425497class AgentResourceWithRawResponse :
426498 def __init__ (self , agent : AgentResource ) -> None :
@@ -438,6 +510,9 @@ def __init__(self, agent: AgentResource) -> None:
438510 self .delete = to_raw_response_wrapper (
439511 agent .delete ,
440512 )
513+ self .get = to_raw_response_wrapper (
514+ agent .get ,
515+ )
441516
442517
443518class AsyncAgentResourceWithRawResponse :
@@ -456,6 +531,9 @@ def __init__(self, agent: AsyncAgentResource) -> None:
456531 self .delete = async_to_raw_response_wrapper (
457532 agent .delete ,
458533 )
534+ self .get = async_to_raw_response_wrapper (
535+ agent .get ,
536+ )
459537
460538
461539class AgentResourceWithStreamingResponse :
@@ -474,6 +552,9 @@ def __init__(self, agent: AgentResource) -> None:
474552 self .delete = to_streamed_response_wrapper (
475553 agent .delete ,
476554 )
555+ self .get = to_streamed_response_wrapper (
556+ agent .get ,
557+ )
477558
478559
479560class AsyncAgentResourceWithStreamingResponse :
@@ -492,3 +573,6 @@ def __init__(self, agent: AsyncAgentResource) -> None:
492573 self .delete = async_to_streamed_response_wrapper (
493574 agent .delete ,
494575 )
576+ self .get = async_to_streamed_response_wrapper (
577+ agent .get ,
578+ )
0 commit comments