Skip to content

Commit 618f1bb

Browse files
fix: add AxonEventView schema to OpenAPI spec for SSE subscribe endpoint (#8274)
1 parent 6cff97e commit 618f1bb

File tree

12 files changed

+1053
-4
lines changed

12 files changed

+1053
-4
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 117
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-64b2ded3d3cc58131c7ebf36c411f43c3d8dabae0b5b1edd65dd7dab307c54a1.yml
3-
openapi_spec_hash: 80fabb5e89a61299203113505a894dc2
4-
config_hash: de99cfce88e2d1f02246dc6c2f43bc6c
1+
configured_endpoints: 122
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-82e6ea2fc76e43ff397ca1d9997693307a006ef30ec1a001c0283319a3e2eb3b.yml
3+
openapi_spec_hash: 69cf8a2d13bda298f2b588bd3ba1e562
4+
config_hash: c422b761c745873bce8fa5ccf03b7b98

api.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,29 @@ Methods:
8787
- <code title="get /v1/agents/{id}">client.agents.<a href="./src/runloop_api_client/resources/agents.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/agent_view.py">AgentView</a></code>
8888
- <code title="get /v1/agents">client.agents.<a href="./src/runloop_api_client/resources/agents.py">list</a>(\*\*<a href="src/runloop_api_client/types/agent_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/agent_view.py">SyncAgentsCursorIDPage[AgentView]</a></code>
8989

90+
# Axons
91+
92+
Types:
93+
94+
```python
95+
from runloop_api_client.types import (
96+
AxonCreateParams,
97+
AxonEventView,
98+
AxonListView,
99+
AxonView,
100+
PublishParams,
101+
PublishResultView,
102+
)
103+
```
104+
105+
Methods:
106+
107+
- <code title="post /v1/axons">client.axons.<a href="./src/runloop_api_client/resources/axons.py">create</a>() -> <a href="./src/runloop_api_client/types/axon_view.py">AxonView</a></code>
108+
- <code title="get /v1/axons/{id}">client.axons.<a href="./src/runloop_api_client/resources/axons.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/axon_view.py">AxonView</a></code>
109+
- <code title="get /v1/axons">client.axons.<a href="./src/runloop_api_client/resources/axons.py">list</a>() -> <a href="./src/runloop_api_client/types/axon_list_view.py">AxonListView</a></code>
110+
- <code title="post /v1/axons/{id}/publish">client.axons.<a href="./src/runloop_api_client/resources/axons.py">publish</a>(id, \*\*<a href="src/runloop_api_client/types/axon_publish_params.py">params</a>) -> <a href="./src/runloop_api_client/types/publish_result_view.py">PublishResultView</a></code>
111+
- <code title="get /v1/axons/{id}/subscribe/sse">client.axons.<a href="./src/runloop_api_client/resources/axons.py">subscribe_sse</a>(id) -> <a href="./src/runloop_api_client/types/axon_event_view.py">AxonEventView</a></code>
112+
90113
# Blueprints
91114

92115
Types:

src/runloop_api_client/_client.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
if TYPE_CHECKING:
3434
from .resources import (
35+
axons,
3536
agents,
3637
objects,
3738
secrets,
@@ -46,6 +47,7 @@
4647
gateway_configs,
4748
network_policies,
4849
)
50+
from .resources.axons import AxonsResource, AsyncAxonsResource
4951
from .resources.agents import AgentsResource, AsyncAgentsResource
5052
from .resources.objects import ObjectsResource, AsyncObjectsResource
5153
from .resources.secrets import SecretsResource, AsyncSecretsResource
@@ -144,6 +146,12 @@ def agents(self) -> AgentsResource:
144146

145147
return AgentsResource(self)
146148

149+
@cached_property
150+
def axons(self) -> AxonsResource:
151+
from .resources.axons import AxonsResource
152+
153+
return AxonsResource(self)
154+
147155
@cached_property
148156
def blueprints(self) -> BlueprintsResource:
149157
from .resources.blueprints import BlueprintsResource
@@ -392,6 +400,12 @@ def agents(self) -> AsyncAgentsResource:
392400

393401
return AsyncAgentsResource(self)
394402

403+
@cached_property
404+
def axons(self) -> AsyncAxonsResource:
405+
from .resources.axons import AsyncAxonsResource
406+
407+
return AsyncAxonsResource(self)
408+
395409
@cached_property
396410
def blueprints(self) -> AsyncBlueprintsResource:
397411
from .resources.blueprints import AsyncBlueprintsResource
@@ -589,6 +603,12 @@ def agents(self) -> agents.AgentsResourceWithRawResponse:
589603

590604
return AgentsResourceWithRawResponse(self._client.agents)
591605

606+
@cached_property
607+
def axons(self) -> axons.AxonsResourceWithRawResponse:
608+
from .resources.axons import AxonsResourceWithRawResponse
609+
610+
return AxonsResourceWithRawResponse(self._client.axons)
611+
592612
@cached_property
593613
def blueprints(self) -> blueprints.BlueprintsResourceWithRawResponse:
594614
from .resources.blueprints import BlueprintsResourceWithRawResponse
@@ -674,6 +694,12 @@ def agents(self) -> agents.AsyncAgentsResourceWithRawResponse:
674694

675695
return AsyncAgentsResourceWithRawResponse(self._client.agents)
676696

697+
@cached_property
698+
def axons(self) -> axons.AsyncAxonsResourceWithRawResponse:
699+
from .resources.axons import AsyncAxonsResourceWithRawResponse
700+
701+
return AsyncAxonsResourceWithRawResponse(self._client.axons)
702+
677703
@cached_property
678704
def blueprints(self) -> blueprints.AsyncBlueprintsResourceWithRawResponse:
679705
from .resources.blueprints import AsyncBlueprintsResourceWithRawResponse
@@ -759,6 +785,12 @@ def agents(self) -> agents.AgentsResourceWithStreamingResponse:
759785

760786
return AgentsResourceWithStreamingResponse(self._client.agents)
761787

788+
@cached_property
789+
def axons(self) -> axons.AxonsResourceWithStreamingResponse:
790+
from .resources.axons import AxonsResourceWithStreamingResponse
791+
792+
return AxonsResourceWithStreamingResponse(self._client.axons)
793+
762794
@cached_property
763795
def blueprints(self) -> blueprints.BlueprintsResourceWithStreamingResponse:
764796
from .resources.blueprints import BlueprintsResourceWithStreamingResponse
@@ -844,6 +876,12 @@ def agents(self) -> agents.AsyncAgentsResourceWithStreamingResponse:
844876

845877
return AsyncAgentsResourceWithStreamingResponse(self._client.agents)
846878

879+
@cached_property
880+
def axons(self) -> axons.AsyncAxonsResourceWithStreamingResponse:
881+
from .resources.axons import AsyncAxonsResourceWithStreamingResponse
882+
883+
return AsyncAxonsResourceWithStreamingResponse(self._client.axons)
884+
847885
@cached_property
848886
def blueprints(self) -> blueprints.AsyncBlueprintsResourceWithStreamingResponse:
849887
from .resources.blueprints import AsyncBlueprintsResourceWithStreamingResponse

src/runloop_api_client/resources/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from .axons import (
4+
AxonsResource,
5+
AsyncAxonsResource,
6+
AxonsResourceWithRawResponse,
7+
AsyncAxonsResourceWithRawResponse,
8+
AxonsResourceWithStreamingResponse,
9+
AsyncAxonsResourceWithStreamingResponse,
10+
)
311
from .agents import (
412
AgentsResource,
513
AsyncAgentsResource,
@@ -130,6 +138,12 @@
130138
"AsyncAgentsResourceWithRawResponse",
131139
"AgentsResourceWithStreamingResponse",
132140
"AsyncAgentsResourceWithStreamingResponse",
141+
"AxonsResource",
142+
"AsyncAxonsResource",
143+
"AxonsResourceWithRawResponse",
144+
"AsyncAxonsResourceWithRawResponse",
145+
"AxonsResourceWithStreamingResponse",
146+
"AsyncAxonsResourceWithStreamingResponse",
133147
"BlueprintsResource",
134148
"AsyncBlueprintsResource",
135149
"BlueprintsResourceWithRawResponse",

0 commit comments

Comments
 (0)