File tree Expand file tree Collapse file tree
src/runloop_api_client/sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ async def list(
159159 page = await self ._client .devboxes .list (
160160 ** params ,
161161 )
162- return [AsyncDevbox (self ._client , item .id , item ) for item in page .devboxes ]
162+ return [AsyncDevbox (self ._client , item .id ) for item in page .devboxes ]
163163
164164
165165class AsyncSnapshotOps :
@@ -578,7 +578,7 @@ async def create(
578578 agent_view = await self ._client .agents .create (
579579 ** params ,
580580 )
581- return AsyncAgent (self ._client , agent_view .id )
581+ return AsyncAgent (self ._client , agent_view .id , agent_view )
582582
583583 def from_id (self , agent_id : str ) -> AsyncAgent :
584584 """Attach to an existing agent by ID.
@@ -603,7 +603,7 @@ async def list(
603603 page = await self ._client .agents .list (
604604 ** params ,
605605 )
606- return [AsyncAgent (self ._client , item .id ) for item in page .agents ]
606+ return [AsyncAgent (self ._client , item .id , item ) for item in page .agents ]
607607
608608
609609class AsyncRunloopSDK :
Original file line number Diff line number Diff line change @@ -574,7 +574,7 @@ def create(
574574 agent_view = self ._client .agents .create (
575575 ** params ,
576576 )
577- return Agent (self ._client , agent_view .id )
577+ return Agent (self ._client , agent_view .id , agent_view )
578578
579579 def from_id (self , agent_id : str ) -> Agent :
580580 """Attach to an existing agent by ID.
You can’t perform that action at this time.
0 commit comments