@@ -231,6 +231,7 @@ async def test_auto_register(self, httpx_mock: HTTPXMock, agent_no_schema: Agent
231231 json = {
232232 "id" : "123" ,
233233 "schema_id" : 2 ,
234+ "uid" : 123 ,
234235 },
235236 )
236237 run_response = fixtures_json ("task_run.json" )
@@ -241,6 +242,7 @@ async def test_auto_register(self, httpx_mock: HTTPXMock, agent_no_schema: Agent
241242
242243 out = await agent_no_schema .run (HelloTaskInput (name = "Alice" ))
243244 assert out .id == "8f635b73-f403-47ee-bff9-18320616c6cc"
245+ assert agent_no_schema .agent_uid == 123
244246
245247 run_response ["id" ] = "8f635b73-f403-47ee-bff9-18320616c6cc"
246248 # Try and run again
@@ -286,7 +288,7 @@ class AliasOutput(BaseModel):
286288
287289 agent = Agent (agent_id = "123" , input_cls = AliasInput , output_cls = AliasOutput , api = api_client )
288290
289- httpx_mock .add_response (url = "http://localhost:8000/v1/_/agents" , json = {"id" : "123" , "schema_id" : 2 })
291+ httpx_mock .add_response (url = "http://localhost:8000/v1/_/agents" , json = {"id" : "123" , "schema_id" : 2 , "uid" : 123 })
290292
291293 httpx_mock .add_response (
292294 url = "http://localhost:8000/v1/_/agents/123/schemas/2/run" ,
@@ -805,7 +807,7 @@ async def test_list_models_registers_if_needed(
805807 # Mock the registration response
806808 httpx_mock .add_response (
807809 url = "http://localhost:8000/v1/_/agents" ,
808- json = {"id" : "123" , "schema_id" : 2 },
810+ json = {"id" : "123" , "schema_id" : 2 , "uid" : 123 },
809811 )
810812
811813 # Mock the models response with the new structure
0 commit comments