Skip to content

Commit 1714226

Browse files
feat: Include agent UID in scheduled agent API responses
1 parent 88de4e2 commit 1714226

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-c58f2ee13e97acdf607650e199cb1377d2767c6bd6183b5f1212fa2666bb5f04.yml
3-
openapi_spec_hash: 19295b9e19b2ab3093087d9b11a6095f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-1fecc5f5d6ee664d804b81bd1aa6eec4d3f170ffa788d214fead4f7e95ab9d4e.yml
3+
openapi_spec_hash: 82990b03bd5a93e45bfc79db56ae7fc0
44
config_hash: f52e7636f248f25c4ea0b086e7326816

src/oz_agent_sdk/types/agent/scheduled_agent_item.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class ScheduledAgentItem(BaseModel):
4141
agent_config: Optional[AmbientAgentConfig] = None
4242
"""Configuration for a cloud agent run"""
4343

44+
agent_uid: Optional[str] = None
45+
"""UID of the agent that this schedule runs as"""
46+
4447
created_by: Optional[UserProfile] = None
4548

4649
environment: Optional[CloudEnvironmentConfig] = None

tests/api_resources/agent/test_schedules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_method_create_with_all_params(self, client: OzAPI) -> None:
5959
"skill_spec": "skill_spec",
6060
"worker_host": "worker_host",
6161
},
62-
agent_uid="agent_uid",
62+
agent_uid="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
6363
enabled=True,
6464
mode="normal",
6565
prompt="Review open pull requests and provide feedback",
@@ -179,7 +179,7 @@ def test_method_update_with_all_params(self, client: OzAPI) -> None:
179179
"skill_spec": "skill_spec",
180180
"worker_host": "worker_host",
181181
},
182-
agent_uid="agent_uid",
182+
agent_uid="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
183183
mode="normal",
184184
prompt="prompt",
185185
)
@@ -426,7 +426,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOzAPI) ->
426426
"skill_spec": "skill_spec",
427427
"worker_host": "worker_host",
428428
},
429-
agent_uid="agent_uid",
429+
agent_uid="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
430430
enabled=True,
431431
mode="normal",
432432
prompt="Review open pull requests and provide feedback",
@@ -546,7 +546,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncOzAPI) ->
546546
"skill_spec": "skill_spec",
547547
"worker_host": "worker_host",
548548
},
549-
agent_uid="agent_uid",
549+
agent_uid="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
550550
mode="normal",
551551
prompt="prompt",
552552
)

0 commit comments

Comments
 (0)