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 @@ -156,7 +156,7 @@ async def list(
156156 page = await self ._client .devboxes .list (
157157 ** params ,
158158 )
159- return [AsyncDevbox (self ._client , item .id , item ) for item in page .devboxes ]
159+ return [AsyncDevbox (self ._client , item .id ) for item in page .devboxes ]
160160
161161
162162class AsyncSnapshotOps :
@@ -511,7 +511,7 @@ async def create(
511511 agent_view = await self ._client .agents .create (
512512 ** params ,
513513 )
514- return AsyncAgent (self ._client , agent_view .id )
514+ return AsyncAgent (self ._client , agent_view .id , agent_view )
515515
516516 def from_id (self , agent_id : str ) -> AsyncAgent :
517517 """Attach to an existing agent by ID.
@@ -536,7 +536,7 @@ async def list(
536536 page = await self ._client .agents .list (
537537 ** params ,
538538 )
539- return [AsyncAgent (self ._client , item .id ) for item in page .agents ]
539+ return [AsyncAgent (self ._client , item .id , item ) for item in page .agents ]
540540
541541
542542class AsyncRunloopSDK :
Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ def create(
506506 agent_view = self ._client .agents .create (
507507 ** params ,
508508 )
509- return Agent (self ._client , agent_view .id )
509+ return Agent (self ._client , agent_view .id , agent_view )
510510
511511 def from_id (self , agent_id : str ) -> Agent :
512512 """Attach to an existing agent by ID.
You can’t perform that action at this time.
0 commit comments