Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.

Commit 424fbf9

Browse files
release: 0.1.0-alpha.4 (#6)
Automated Release PR --- ## 0.1.0-alpha.4 (2025-06-27) Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](llamastack/llama-stack-client-python@v0.1.0-alpha.3...v0.1.0-alpha.4) ### Features * **api:** update via SDK Studio ([4333cb0](llamastack/llama-stack-client-python@4333cb0)) ### Bug Fixes * **ci:** update pyproject.toml to use uv and remove broken CI ([#5](llamastack/llama-stack-client-python#5)) ([7bc925c](llamastack/llama-stack-client-python@7bc925c)) ### Chores * **internal:** version bump ([867ea24](llamastack/llama-stack-client-python@867ea24)) --- This pull request is managed by Stainless's [GitHub App](https://github.com/apps/stainless-app). The [semver version number](https://semver.org/#semantic-versioning-specification-semver) is based on included [commit messages](https://www.conventionalcommits.org/en/v1.0.0/). Alternatively, you can manually set the version number in the title of this pull request. For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request. 🔗 Stainless [website](https://www.stainlessapi.com) 📚 Read the [docs](https://app.stainlessapi.com/docs) 🙋 [Reach out](mailto:[email protected]) for help or questions --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 7bc925c commit 424fbf9

27 files changed

+1913
-12
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.3"
2+
".": "0.1.0-alpha.4"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 96
1+
configured_endpoints: 105
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-df7a19394e9124c18ec4e888e2856d22b5ebfd6fe6fe6e929ff6cfadb2ae7e2a.yml
33
openapi_spec_hash: 9428682672fdd7e2afee7af9ef849dc9
4-
config_hash: 3e9fdf542184399384ed713426a8065c
4+
config_hash: e1d37a77a6e8ca86fb6bccb4b0f172c9

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## 0.1.0-alpha.4 (2025-06-27)
4+
5+
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/llamastack/llama-stack-client-python/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([4333cb0](https://github.com/llamastack/llama-stack-client-python/commit/4333cb0307fd99654e53e8f87b3b2951be027b44))
10+
11+
12+
### Bug Fixes
13+
14+
* **ci:** update pyproject.toml to use uv and remove broken CI ([#5](https://github.com/llamastack/llama-stack-client-python/issues/5)) ([7bc925c](https://github.com/llamastack/llama-stack-client-python/commit/7bc925c00401799d8f3345a4873f1b0028cb45ea))
15+
16+
17+
### Chores
18+
19+
* **internal:** version bump ([867ea24](https://github.com/llamastack/llama-stack-client-python/commit/867ea24344fd71fc9787807a47144af5e3de82f8))
20+
321
## 0.1.0-alpha.3 (2025-06-27)
422

523
Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/llamastack/llama-stack-client-python/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)

api.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,26 +115,31 @@ from llama_stack_client.types import (
115115
ToolExecutionStep,
116116
ToolResponse,
117117
AgentCreateResponse,
118+
AgentRetrieveResponse,
119+
AgentListResponse,
118120
)
119121
```
120122

121123
Methods:
122124

123125
- <code title="post /v1/agents">client.agents.<a href="./src/llama_stack_client/resources/agents/agents.py">create</a>(\*\*<a href="src/llama_stack_client/types/agent_create_params.py">params</a>) -> <a href="./src/llama_stack_client/types/agent_create_response.py">AgentCreateResponse</a></code>
126+
- <code title="get /v1/agents/{agent_id}">client.agents.<a href="./src/llama_stack_client/resources/agents/agents.py">retrieve</a>(agent_id) -> <a href="./src/llama_stack_client/types/agent_retrieve_response.py">AgentRetrieveResponse</a></code>
127+
- <code title="get /v1/agents">client.agents.<a href="./src/llama_stack_client/resources/agents/agents.py">list</a>(\*\*<a href="src/llama_stack_client/types/agent_list_params.py">params</a>) -> <a href="./src/llama_stack_client/types/agent_list_response.py">AgentListResponse</a></code>
124128
- <code title="delete /v1/agents/{agent_id}">client.agents.<a href="./src/llama_stack_client/resources/agents/agents.py">delete</a>(agent_id) -> None</code>
125129

126130
## Session
127131

128132
Types:
129133

130134
```python
131-
from llama_stack_client.types.agents import Session, SessionCreateResponse
135+
from llama_stack_client.types.agents import Session, SessionCreateResponse, SessionListResponse
132136
```
133137

134138
Methods:
135139

136140
- <code title="post /v1/agents/{agent_id}/session">client.agents.session.<a href="./src/llama_stack_client/resources/agents/session.py">create</a>(agent_id, \*\*<a href="src/llama_stack_client/types/agents/session_create_params.py">params</a>) -> <a href="./src/llama_stack_client/types/agents/session_create_response.py">SessionCreateResponse</a></code>
137141
- <code title="get /v1/agents/{agent_id}/session/{session_id}">client.agents.session.<a href="./src/llama_stack_client/resources/agents/session.py">retrieve</a>(session_id, \*, agent_id, \*\*<a href="src/llama_stack_client/types/agents/session_retrieve_params.py">params</a>) -> <a href="./src/llama_stack_client/types/agents/session.py">Session</a></code>
142+
- <code title="get /v1/agents/{agent_id}/sessions">client.agents.session.<a href="./src/llama_stack_client/resources/agents/session.py">list</a>(agent_id, \*\*<a href="src/llama_stack_client/types/agents/session_list_params.py">params</a>) -> <a href="./src/llama_stack_client/types/agents/session_list_response.py">SessionListResponse</a></code>
138143
- <code title="delete /v1/agents/{agent_id}/session/{session_id}">client.agents.session.<a href="./src/llama_stack_client/resources/agents/session.py">delete</a>(session_id, \*, agent_id) -> None</code>
139144

140145
## Steps
@@ -186,6 +191,7 @@ Methods:
186191

187192
- <code title="get /v1/datasets/{dataset_id}">client.datasets.<a href="./src/llama_stack_client/resources/datasets.py">retrieve</a>(dataset_id) -> <a href="./src/llama_stack_client/types/dataset_retrieve_response.py">DatasetRetrieveResponse</a></code>
188193
- <code title="get /v1/datasets">client.datasets.<a href="./src/llama_stack_client/resources/datasets.py">list</a>() -> <a href="./src/llama_stack_client/types/dataset_list_response.py">DatasetListResponse</a></code>
194+
- <code title="post /v1/datasetio/append-rows/{dataset_id}">client.datasets.<a href="./src/llama_stack_client/resources/datasets.py">appendrows</a>(dataset_id, \*\*<a href="src/llama_stack_client/types/dataset_appendrows_params.py">params</a>) -> None</code>
189195
- <code title="get /v1/datasetio/iterrows/{dataset_id}">client.datasets.<a href="./src/llama_stack_client/resources/datasets.py">iterrows</a>(dataset_id, \*\*<a href="src/llama_stack_client/types/dataset_iterrows_params.py">params</a>) -> <a href="./src/llama_stack_client/types/dataset_iterrows_response.py">DatasetIterrowsResponse</a></code>
190196
- <code title="post /v1/datasets">client.datasets.<a href="./src/llama_stack_client/resources/datasets.py">register</a>(\*\*<a href="src/llama_stack_client/types/dataset_register_params.py">params</a>) -> <a href="./src/llama_stack_client/types/dataset_register_response.py">DatasetRegisterResponse</a></code>
191197
- <code title="delete /v1/datasets/{dataset_id}">client.datasets.<a href="./src/llama_stack_client/resources/datasets.py">unregister</a>(dataset_id) -> None</code>
@@ -358,12 +364,22 @@ Methods:
358364
Types:
359365

360366
```python
361-
from llama_stack_client.types.vector_stores import VectorStoreFile
367+
from llama_stack_client.types.vector_stores import (
368+
VectorStoreFile,
369+
FileListResponse,
370+
FileDeleteResponse,
371+
FileContentResponse,
372+
)
362373
```
363374

364375
Methods:
365376

366377
- <code title="post /v1/openai/v1/vector_stores/{vector_store_id}/files">client.vector_stores.files.<a href="./src/llama_stack_client/resources/vector_stores/files.py">create</a>(vector_store_id, \*\*<a href="src/llama_stack_client/types/vector_stores/file_create_params.py">params</a>) -> <a href="./src/llama_stack_client/types/vector_stores/vector_store_file.py">VectorStoreFile</a></code>
378+
- <code title="get /v1/openai/v1/vector_stores/{vector_store_id}/files/{file_id}">client.vector_stores.files.<a href="./src/llama_stack_client/resources/vector_stores/files.py">retrieve</a>(file_id, \*, vector_store_id) -> <a href="./src/llama_stack_client/types/vector_stores/vector_store_file.py">VectorStoreFile</a></code>
379+
- <code title="post /v1/openai/v1/vector_stores/{vector_store_id}/files/{file_id}">client.vector_stores.files.<a href="./src/llama_stack_client/resources/vector_stores/files.py">update</a>(file_id, \*, vector_store_id, \*\*<a href="src/llama_stack_client/types/vector_stores/file_update_params.py">params</a>) -> <a href="./src/llama_stack_client/types/vector_stores/vector_store_file.py">VectorStoreFile</a></code>
380+
- <code title="get /v1/openai/v1/vector_stores/{vector_store_id}/files">client.vector_stores.files.<a href="./src/llama_stack_client/resources/vector_stores/files.py">list</a>(vector_store_id, \*\*<a href="src/llama_stack_client/types/vector_stores/file_list_params.py">params</a>) -> <a href="./src/llama_stack_client/types/vector_stores/file_list_response.py">FileListResponse</a></code>
381+
- <code title="delete /v1/openai/v1/vector_stores/{vector_store_id}/files/{file_id}">client.vector_stores.files.<a href="./src/llama_stack_client/resources/vector_stores/files.py">delete</a>(file_id, \*, vector_store_id) -> <a href="./src/llama_stack_client/types/vector_stores/file_delete_response.py">FileDeleteResponse</a></code>
382+
- <code title="get /v1/openai/v1/vector_stores/{vector_store_id}/files/{file_id}/content">client.vector_stores.files.<a href="./src/llama_stack_client/resources/vector_stores/files.py">content</a>(file_id, \*, vector_store_id) -> <a href="./src/llama_stack_client/types/vector_stores/file_content_response.py">FileContentResponse</a></code>
367383

368384
# Models
369385

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "llama_stack_client"
3-
version = "0.1.0-alpha.3"
3+
version = "0.1.0-alpha.4"
44
description = "The official Python library for the llama-stack-client API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/llama_stack_client/resources/agents/agents.py

Lines changed: 185 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
StepsResourceWithStreamingResponse,
2121
AsyncStepsResourceWithStreamingResponse,
2222
)
23-
from ...types import agent_create_params
23+
from ...types import agent_list_params, agent_create_params
2424
from .session import (
2525
SessionResource,
2626
AsyncSessionResource,
@@ -40,7 +40,9 @@
4040
async_to_streamed_response_wrapper,
4141
)
4242
from ..._base_client import make_request_options
43+
from ...types.agent_list_response import AgentListResponse
4344
from ...types.agent_create_response import AgentCreateResponse
45+
from ...types.agent_retrieve_response import AgentRetrieveResponse
4446
from ...types.shared_params.agent_config import AgentConfig
4547

4648
__all__ = ["AgentsResource", "AsyncAgentsResource"]
@@ -112,6 +114,85 @@ def create(
112114
cast_to=AgentCreateResponse,
113115
)
114116

117+
def retrieve(
118+
self,
119+
agent_id: str,
120+
*,
121+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
122+
# The extra values given here take precedence over values defined on the client or passed to this method.
123+
extra_headers: Headers | None = None,
124+
extra_query: Query | None = None,
125+
extra_body: Body | None = None,
126+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
127+
) -> AgentRetrieveResponse:
128+
"""
129+
Describe an agent by its ID.
130+
131+
Args:
132+
extra_headers: Send extra headers
133+
134+
extra_query: Add additional query parameters to the request
135+
136+
extra_body: Add additional JSON properties to the request
137+
138+
timeout: Override the client-level default timeout for this request, in seconds
139+
"""
140+
if not agent_id:
141+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
142+
return self._get(
143+
f"/v1/agents/{agent_id}",
144+
options=make_request_options(
145+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
146+
),
147+
cast_to=AgentRetrieveResponse,
148+
)
149+
150+
def list(
151+
self,
152+
*,
153+
limit: int | NotGiven = NOT_GIVEN,
154+
start_index: int | NotGiven = NOT_GIVEN,
155+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
156+
# The extra values given here take precedence over values defined on the client or passed to this method.
157+
extra_headers: Headers | None = None,
158+
extra_query: Query | None = None,
159+
extra_body: Body | None = None,
160+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
161+
) -> AgentListResponse:
162+
"""
163+
List all agents.
164+
165+
Args:
166+
limit: The number of agents to return.
167+
168+
start_index: The index to start the pagination from.
169+
170+
extra_headers: Send extra headers
171+
172+
extra_query: Add additional query parameters to the request
173+
174+
extra_body: Add additional JSON properties to the request
175+
176+
timeout: Override the client-level default timeout for this request, in seconds
177+
"""
178+
return self._get(
179+
"/v1/agents",
180+
options=make_request_options(
181+
extra_headers=extra_headers,
182+
extra_query=extra_query,
183+
extra_body=extra_body,
184+
timeout=timeout,
185+
query=maybe_transform(
186+
{
187+
"limit": limit,
188+
"start_index": start_index,
189+
},
190+
agent_list_params.AgentListParams,
191+
),
192+
),
193+
cast_to=AgentListResponse,
194+
)
195+
115196
def delete(
116197
self,
117198
agent_id: str,
@@ -213,6 +294,85 @@ async def create(
213294
cast_to=AgentCreateResponse,
214295
)
215296

297+
async def retrieve(
298+
self,
299+
agent_id: str,
300+
*,
301+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
302+
# The extra values given here take precedence over values defined on the client or passed to this method.
303+
extra_headers: Headers | None = None,
304+
extra_query: Query | None = None,
305+
extra_body: Body | None = None,
306+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
307+
) -> AgentRetrieveResponse:
308+
"""
309+
Describe an agent by its ID.
310+
311+
Args:
312+
extra_headers: Send extra headers
313+
314+
extra_query: Add additional query parameters to the request
315+
316+
extra_body: Add additional JSON properties to the request
317+
318+
timeout: Override the client-level default timeout for this request, in seconds
319+
"""
320+
if not agent_id:
321+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
322+
return await self._get(
323+
f"/v1/agents/{agent_id}",
324+
options=make_request_options(
325+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
326+
),
327+
cast_to=AgentRetrieveResponse,
328+
)
329+
330+
async def list(
331+
self,
332+
*,
333+
limit: int | NotGiven = NOT_GIVEN,
334+
start_index: int | NotGiven = NOT_GIVEN,
335+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
336+
# The extra values given here take precedence over values defined on the client or passed to this method.
337+
extra_headers: Headers | None = None,
338+
extra_query: Query | None = None,
339+
extra_body: Body | None = None,
340+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
341+
) -> AgentListResponse:
342+
"""
343+
List all agents.
344+
345+
Args:
346+
limit: The number of agents to return.
347+
348+
start_index: The index to start the pagination from.
349+
350+
extra_headers: Send extra headers
351+
352+
extra_query: Add additional query parameters to the request
353+
354+
extra_body: Add additional JSON properties to the request
355+
356+
timeout: Override the client-level default timeout for this request, in seconds
357+
"""
358+
return await self._get(
359+
"/v1/agents",
360+
options=make_request_options(
361+
extra_headers=extra_headers,
362+
extra_query=extra_query,
363+
extra_body=extra_body,
364+
timeout=timeout,
365+
query=await async_maybe_transform(
366+
{
367+
"limit": limit,
368+
"start_index": start_index,
369+
},
370+
agent_list_params.AgentListParams,
371+
),
372+
),
373+
cast_to=AgentListResponse,
374+
)
375+
216376
async def delete(
217377
self,
218378
agent_id: str,
@@ -255,6 +415,12 @@ def __init__(self, agents: AgentsResource) -> None:
255415
self.create = to_raw_response_wrapper(
256416
agents.create,
257417
)
418+
self.retrieve = to_raw_response_wrapper(
419+
agents.retrieve,
420+
)
421+
self.list = to_raw_response_wrapper(
422+
agents.list,
423+
)
258424
self.delete = to_raw_response_wrapper(
259425
agents.delete,
260426
)
@@ -279,6 +445,12 @@ def __init__(self, agents: AsyncAgentsResource) -> None:
279445
self.create = async_to_raw_response_wrapper(
280446
agents.create,
281447
)
448+
self.retrieve = async_to_raw_response_wrapper(
449+
agents.retrieve,
450+
)
451+
self.list = async_to_raw_response_wrapper(
452+
agents.list,
453+
)
282454
self.delete = async_to_raw_response_wrapper(
283455
agents.delete,
284456
)
@@ -303,6 +475,12 @@ def __init__(self, agents: AgentsResource) -> None:
303475
self.create = to_streamed_response_wrapper(
304476
agents.create,
305477
)
478+
self.retrieve = to_streamed_response_wrapper(
479+
agents.retrieve,
480+
)
481+
self.list = to_streamed_response_wrapper(
482+
agents.list,
483+
)
306484
self.delete = to_streamed_response_wrapper(
307485
agents.delete,
308486
)
@@ -327,6 +505,12 @@ def __init__(self, agents: AsyncAgentsResource) -> None:
327505
self.create = async_to_streamed_response_wrapper(
328506
agents.create,
329507
)
508+
self.retrieve = async_to_streamed_response_wrapper(
509+
agents.retrieve,
510+
)
511+
self.list = async_to_streamed_response_wrapper(
512+
agents.list,
513+
)
330514
self.delete = async_to_streamed_response_wrapper(
331515
agents.delete,
332516
)

0 commit comments

Comments
 (0)