Skip to content

Commit 27ed4b2

Browse files
committed
possible fix for bogus 404 error
1 parent c323240 commit 27ed4b2

2 files changed

Lines changed: 36 additions & 36 deletions

File tree

tests/smoketests/sdk/test_agent.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def test_agent_create_basic(self, sdk_client: RunloopSDK) -> None:
2323
agent = sdk_client.agent.create(
2424
name=name,
2525
source={
26-
"type": "object",
27-
"object": {
28-
"object_id": "obj_placeholder",
26+
"type": "npm",
27+
"npm": {
28+
"package_name": "@runloop/hello-world-agent",
2929
},
3030
},
3131
)
@@ -56,9 +56,9 @@ def test_agent_create_with_metadata(self, sdk_client: RunloopSDK) -> None:
5656
name=name,
5757
metadata=metadata,
5858
source={
59-
"type": "object",
60-
"object": {
61-
"object_id": "obj_placeholder",
59+
"type": "npm",
60+
"npm": {
61+
"package_name": "@runloop/hello-world-agent",
6262
},
6363
},
6464
)
@@ -80,9 +80,9 @@ def test_agent_get_info(self, sdk_client: RunloopSDK) -> None:
8080
agent = sdk_client.agent.create(
8181
name=name,
8282
source={
83-
"type": "object",
84-
"object": {
85-
"object_id": "obj_placeholder",
83+
"type": "npm",
84+
"npm": {
85+
"package_name": "@runloop/hello-world-agent",
8686
},
8787
},
8888
)
@@ -117,9 +117,9 @@ def test_get_agent_by_id(self, sdk_client: RunloopSDK) -> None:
117117
created = sdk_client.agent.create(
118118
name=unique_name("sdk-agent-retrieve"),
119119
source={
120-
"type": "object",
121-
"object": {
122-
"object_id": "obj_placeholder",
120+
"type": "npm",
121+
"npm": {
122+
"package_name": "@runloop/hello-world-agent",
123123
},
124124
},
125125
)
@@ -139,9 +139,9 @@ def test_get_agent_by_id(self, sdk_client: RunloopSDK) -> None:
139139
def test_list_multiple_agents(self, sdk_client: RunloopSDK) -> None:
140140
"""Test listing multiple agents after creation."""
141141
source_config = {
142-
"type": "object",
143-
"object": {
144-
"object_id": "obj_placeholder",
142+
"type": "npm",
143+
"npm": {
144+
"package_name": "@runloop/hello-world-agent",
145145
},
146146
}
147147

@@ -179,9 +179,9 @@ def test_agent_with_is_public_flag(self, sdk_client: RunloopSDK) -> None:
179179
name=name,
180180
is_public=True,
181181
source={
182-
"type": "object",
183-
"object": {
184-
"object_id": "obj_placeholder",
182+
"type": "npm",
183+
"npm": {
184+
"package_name": "@runloop/hello-world-agent",
185185
},
186186
},
187187
)

tests/smoketests/sdk/test_async_agent.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ async def test_agent_create_basic(self, async_sdk_client: AsyncRunloopSDK) -> No
2323
agent = await async_sdk_client.agent.create(
2424
name=name,
2525
source={
26-
"type": "object",
27-
"object": {
28-
"object_id": "obj_placeholder",
26+
"type": "npm",
27+
"npm": {
28+
"package_name": "@runloop/hello-world-agent",
2929
},
3030
},
3131
)
@@ -56,9 +56,9 @@ async def test_agent_create_with_metadata(self, async_sdk_client: AsyncRunloopSD
5656
name=name,
5757
metadata=metadata,
5858
source={
59-
"type": "object",
60-
"object": {
61-
"object_id": "obj_placeholder",
59+
"type": "npm",
60+
"npm": {
61+
"package_name": "@runloop/hello-world-agent",
6262
},
6363
},
6464
)
@@ -80,9 +80,9 @@ async def test_agent_get_info(self, async_sdk_client: AsyncRunloopSDK) -> None:
8080
agent = await async_sdk_client.agent.create(
8181
name=name,
8282
source={
83-
"type": "object",
84-
"object": {
85-
"object_id": "obj_placeholder",
83+
"type": "npm",
84+
"npm": {
85+
"package_name": "@runloop/hello-world-agent",
8686
},
8787
},
8888
)
@@ -117,9 +117,9 @@ async def test_get_agent_by_id(self, async_sdk_client: AsyncRunloopSDK) -> None:
117117
created = await async_sdk_client.agent.create(
118118
name=unique_name("sdk-async-agent-retrieve"),
119119
source={
120-
"type": "object",
121-
"object": {
122-
"object_id": "obj_placeholder",
120+
"type": "npm",
121+
"npm": {
122+
"package_name": "@runloop/hello-world-agent",
123123
},
124124
},
125125
)
@@ -139,9 +139,9 @@ async def test_get_agent_by_id(self, async_sdk_client: AsyncRunloopSDK) -> None:
139139
async def test_list_multiple_agents(self, async_sdk_client: AsyncRunloopSDK) -> None:
140140
"""Test listing multiple agents after creation."""
141141
source_config = {
142-
"type": "object",
143-
"object": {
144-
"object_id": "obj_placeholder",
142+
"type": "npm",
143+
"npm": {
144+
"package_name": "@runloop/hello-world-agent",
145145
},
146146
}
147147

@@ -179,9 +179,9 @@ async def test_agent_with_is_public_flag(self, async_sdk_client: AsyncRunloopSDK
179179
name=name,
180180
is_public=True,
181181
source={
182-
"type": "object",
183-
"object": {
184-
"object_id": "obj_placeholder",
182+
"type": "npm",
183+
"npm": {
184+
"package_name": "@runloop/hello-world-agent",
185185
},
186186
},
187187
)

0 commit comments

Comments
 (0)