Skip to content

Commit 44e5dec

Browse files
stainless-app[bot]meorphis
authored andcommitted
feat(api): sync
1 parent 88ed3fb commit 44e5dec

File tree

13 files changed

+129
-129
lines changed

13 files changed

+129
-129
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 104
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-2acd62f8d5c4523bad4ddb2cc50608135249858b7047a71b48e25befa1e1f43f.yml
3-
openapi_spec_hash: 1ad726ff81dc21720c8c3443d33c0562
4-
config_hash: 6c5b61acff5bb6534edd57f93ed60106
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-fcaa960dc2de2029f4f67f13ff1d0fc1ff70e683810ed9739be805debef1673d.yml
3+
openapi_spec_hash: a25e7616ad6230f872b46c2cb6fa0a96
4+
config_hash: ff421daf28f90ad4bd4e13f374b18a00

api.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -431,31 +431,6 @@ Methods:
431431
- <code title="delete /v1/files/{file_id}">client.files.<a href="./src/llama_stack_client/resources/files.py">delete</a>(file_id) -> <a href="./src/llama_stack_client/types/delete_file_response.py">DeleteFileResponse</a></code>
432432
- <code title="get /v1/files/{file_id}/content">client.files.<a href="./src/llama_stack_client/resources/files.py">content</a>(file_id) -> object</code>
433433

434-
# Beta
435-
436-
## Datasets
437-
438-
Types:
439-
440-
```python
441-
from llama_stack_client.types.beta import (
442-
ListDatasetsResponse,
443-
DatasetRetrieveResponse,
444-
DatasetListResponse,
445-
DatasetIterrowsResponse,
446-
DatasetRegisterResponse,
447-
)
448-
```
449-
450-
Methods:
451-
452-
- <code title="get /v1beta/datasets/{dataset_id}">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">retrieve</a>(dataset_id) -> <a href="./src/llama_stack_client/types/beta/dataset_retrieve_response.py">DatasetRetrieveResponse</a></code>
453-
- <code title="get /v1beta/datasets">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">list</a>() -> <a href="./src/llama_stack_client/types/beta/dataset_list_response.py">DatasetListResponse</a></code>
454-
- <code title="post /v1beta/datasetio/append-rows/{dataset_id}">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">appendrows</a>(dataset_id, \*\*<a href="src/llama_stack_client/types/beta/dataset_appendrows_params.py">params</a>) -> None</code>
455-
- <code title="get /v1beta/datasetio/iterrows/{dataset_id}">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">iterrows</a>(dataset_id, \*\*<a href="src/llama_stack_client/types/beta/dataset_iterrows_params.py">params</a>) -> <a href="./src/llama_stack_client/types/beta/dataset_iterrows_response.py">DatasetIterrowsResponse</a></code>
456-
- <code title="post /v1beta/datasets">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">register</a>(\*\*<a href="src/llama_stack_client/types/beta/dataset_register_params.py">params</a>) -> <a href="./src/llama_stack_client/types/beta/dataset_register_response.py">DatasetRegisterResponse</a></code>
457-
- <code title="delete /v1beta/datasets/{dataset_id}">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">unregister</a>(dataset_id) -> None</code>
458-
459434
# Alpha
460435

461436
## Inference
@@ -601,3 +576,28 @@ Methods:
601576
- <code title="post /v1alpha/agents/{agent_id}/session/{session_id}/turn">client.alpha.agents.turn.<a href="./src/llama_stack_client/resources/alpha/agents/turn.py">create</a>(session_id, \*, agent_id, \*\*<a href="src/llama_stack_client/types/alpha/agents/turn_create_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/agents/turn.py">Turn</a></code>
602577
- <code title="get /v1alpha/agents/{agent_id}/session/{session_id}/turn/{turn_id}">client.alpha.agents.turn.<a href="./src/llama_stack_client/resources/alpha/agents/turn.py">retrieve</a>(turn_id, \*, agent_id, session_id) -> <a href="./src/llama_stack_client/types/alpha/agents/turn.py">Turn</a></code>
603578
- <code title="post /v1alpha/agents/{agent_id}/session/{session_id}/turn/{turn_id}/resume">client.alpha.agents.turn.<a href="./src/llama_stack_client/resources/alpha/agents/turn.py">resume</a>(turn_id, \*, agent_id, session_id, \*\*<a href="src/llama_stack_client/types/alpha/agents/turn_resume_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/agents/turn.py">Turn</a></code>
579+
580+
# Beta
581+
582+
## Datasets
583+
584+
Types:
585+
586+
```python
587+
from llama_stack_client.types.beta import (
588+
ListDatasetsResponse,
589+
DatasetRetrieveResponse,
590+
DatasetListResponse,
591+
DatasetIterrowsResponse,
592+
DatasetRegisterResponse,
593+
)
594+
```
595+
596+
Methods:
597+
598+
- <code title="get /v1beta/datasets/{dataset_id}">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">retrieve</a>(dataset_id) -> <a href="./src/llama_stack_client/types/beta/dataset_retrieve_response.py">DatasetRetrieveResponse</a></code>
599+
- <code title="get /v1beta/datasets">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">list</a>() -> <a href="./src/llama_stack_client/types/beta/dataset_list_response.py">DatasetListResponse</a></code>
600+
- <code title="post /v1beta/datasetio/append-rows/{dataset_id}">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">appendrows</a>(dataset_id, \*\*<a href="src/llama_stack_client/types/beta/dataset_appendrows_params.py">params</a>) -> None</code>
601+
- <code title="get /v1beta/datasetio/iterrows/{dataset_id}">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">iterrows</a>(dataset_id, \*\*<a href="src/llama_stack_client/types/beta/dataset_iterrows_params.py">params</a>) -> <a href="./src/llama_stack_client/types/beta/dataset_iterrows_response.py">DatasetIterrowsResponse</a></code>
602+
- <code title="post /v1beta/datasets">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">register</a>(\*\*<a href="src/llama_stack_client/types/beta/dataset_register_params.py">params</a>) -> <a href="./src/llama_stack_client/types/beta/dataset_register_response.py">DatasetRegisterResponse</a></code>
603+
- <code title="delete /v1beta/datasets/{dataset_id}">client.beta.datasets.<a href="./src/llama_stack_client/resources/beta/datasets.py">unregister</a>(dataset_id) -> None</code>

src/llama_stack_client/_client.py

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -293,18 +293,18 @@ def files(self) -> FilesResource:
293293

294294
return FilesResource(self)
295295

296-
@cached_property
297-
def beta(self) -> BetaResource:
298-
from .resources.beta import BetaResource
299-
300-
return BetaResource(self)
301-
302296
@cached_property
303297
def alpha(self) -> AlphaResource:
304298
from .resources.alpha import AlphaResource
305299

306300
return AlphaResource(self)
307301

302+
@cached_property
303+
def beta(self) -> BetaResource:
304+
from .resources.beta import BetaResource
305+
306+
return BetaResource(self)
307+
308308
@cached_property
309309
def with_raw_response(self) -> LlamaStackClientWithRawResponse:
310310
return LlamaStackClientWithRawResponse(self)
@@ -609,18 +609,18 @@ def files(self) -> AsyncFilesResource:
609609

610610
return AsyncFilesResource(self)
611611

612-
@cached_property
613-
def beta(self) -> AsyncBetaResource:
614-
from .resources.beta import AsyncBetaResource
615-
616-
return AsyncBetaResource(self)
617-
618612
@cached_property
619613
def alpha(self) -> AsyncAlphaResource:
620614
from .resources.alpha import AsyncAlphaResource
621615

622616
return AsyncAlphaResource(self)
623617

618+
@cached_property
619+
def beta(self) -> AsyncBetaResource:
620+
from .resources.beta import AsyncBetaResource
621+
622+
return AsyncBetaResource(self)
623+
624624
@cached_property
625625
def with_raw_response(self) -> AsyncLlamaStackClientWithRawResponse:
626626
return AsyncLlamaStackClientWithRawResponse(self)
@@ -874,18 +874,18 @@ def files(self) -> files.FilesResourceWithRawResponse:
874874

875875
return FilesResourceWithRawResponse(self._client.files)
876876

877-
@cached_property
878-
def beta(self) -> beta.BetaResourceWithRawResponse:
879-
from .resources.beta import BetaResourceWithRawResponse
880-
881-
return BetaResourceWithRawResponse(self._client.beta)
882-
883877
@cached_property
884878
def alpha(self) -> alpha.AlphaResourceWithRawResponse:
885879
from .resources.alpha import AlphaResourceWithRawResponse
886880

887881
return AlphaResourceWithRawResponse(self._client.alpha)
888882

883+
@cached_property
884+
def beta(self) -> beta.BetaResourceWithRawResponse:
885+
from .resources.beta import BetaResourceWithRawResponse
886+
887+
return BetaResourceWithRawResponse(self._client.beta)
888+
889889

890890
class AsyncLlamaStackClientWithRawResponse:
891891
_client: AsyncLlamaStackClient
@@ -1027,18 +1027,18 @@ def files(self) -> files.AsyncFilesResourceWithRawResponse:
10271027

10281028
return AsyncFilesResourceWithRawResponse(self._client.files)
10291029

1030-
@cached_property
1031-
def beta(self) -> beta.AsyncBetaResourceWithRawResponse:
1032-
from .resources.beta import AsyncBetaResourceWithRawResponse
1033-
1034-
return AsyncBetaResourceWithRawResponse(self._client.beta)
1035-
10361030
@cached_property
10371031
def alpha(self) -> alpha.AsyncAlphaResourceWithRawResponse:
10381032
from .resources.alpha import AsyncAlphaResourceWithRawResponse
10391033

10401034
return AsyncAlphaResourceWithRawResponse(self._client.alpha)
10411035

1036+
@cached_property
1037+
def beta(self) -> beta.AsyncBetaResourceWithRawResponse:
1038+
from .resources.beta import AsyncBetaResourceWithRawResponse
1039+
1040+
return AsyncBetaResourceWithRawResponse(self._client.beta)
1041+
10421042

10431043
class LlamaStackClientWithStreamedResponse:
10441044
_client: LlamaStackClient
@@ -1180,18 +1180,18 @@ def files(self) -> files.FilesResourceWithStreamingResponse:
11801180

11811181
return FilesResourceWithStreamingResponse(self._client.files)
11821182

1183-
@cached_property
1184-
def beta(self) -> beta.BetaResourceWithStreamingResponse:
1185-
from .resources.beta import BetaResourceWithStreamingResponse
1186-
1187-
return BetaResourceWithStreamingResponse(self._client.beta)
1188-
11891183
@cached_property
11901184
def alpha(self) -> alpha.AlphaResourceWithStreamingResponse:
11911185
from .resources.alpha import AlphaResourceWithStreamingResponse
11921186

11931187
return AlphaResourceWithStreamingResponse(self._client.alpha)
11941188

1189+
@cached_property
1190+
def beta(self) -> beta.BetaResourceWithStreamingResponse:
1191+
from .resources.beta import BetaResourceWithStreamingResponse
1192+
1193+
return BetaResourceWithStreamingResponse(self._client.beta)
1194+
11951195

11961196
class AsyncLlamaStackClientWithStreamedResponse:
11971197
_client: AsyncLlamaStackClient
@@ -1333,18 +1333,18 @@ def files(self) -> files.AsyncFilesResourceWithStreamingResponse:
13331333

13341334
return AsyncFilesResourceWithStreamingResponse(self._client.files)
13351335

1336-
@cached_property
1337-
def beta(self) -> beta.AsyncBetaResourceWithStreamingResponse:
1338-
from .resources.beta import AsyncBetaResourceWithStreamingResponse
1339-
1340-
return AsyncBetaResourceWithStreamingResponse(self._client.beta)
1341-
13421336
@cached_property
13431337
def alpha(self) -> alpha.AsyncAlphaResourceWithStreamingResponse:
13441338
from .resources.alpha import AsyncAlphaResourceWithStreamingResponse
13451339

13461340
return AsyncAlphaResourceWithStreamingResponse(self._client.alpha)
13471341

1342+
@cached_property
1343+
def beta(self) -> beta.AsyncBetaResourceWithStreamingResponse:
1344+
from .resources.beta import AsyncBetaResourceWithStreamingResponse
1345+
1346+
return AsyncBetaResourceWithStreamingResponse(self._client.beta)
1347+
13481348

13491349
Client = LlamaStackClient
13501350

src/llama_stack_client/resources/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,16 +332,16 @@
332332
"AsyncFilesResourceWithRawResponse",
333333
"FilesResourceWithStreamingResponse",
334334
"AsyncFilesResourceWithStreamingResponse",
335-
"BetaResource",
336-
"AsyncBetaResource",
337-
"BetaResourceWithRawResponse",
338-
"AsyncBetaResourceWithRawResponse",
339-
"BetaResourceWithStreamingResponse",
340-
"AsyncBetaResourceWithStreamingResponse",
341335
"AlphaResource",
342336
"AsyncAlphaResource",
343337
"AlphaResourceWithRawResponse",
344338
"AsyncAlphaResourceWithRawResponse",
345339
"AlphaResourceWithStreamingResponse",
346340
"AsyncAlphaResourceWithStreamingResponse",
341+
"BetaResource",
342+
"AsyncBetaResource",
343+
"BetaResourceWithRawResponse",
344+
"AsyncBetaResourceWithRawResponse",
345+
"BetaResourceWithStreamingResponse",
346+
"AsyncBetaResourceWithStreamingResponse",
347347
]

src/llama_stack_client/resources/tool_runtime/rag_tool.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def insert(
5757
*,
5858
chunk_size_in_tokens: int,
5959
documents: Iterable[Document],
60-
vector_store_id: str,
60+
vector_db_id: str,
6161
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6262
# The extra values given here take precedence over values defined on the client or passed to this method.
6363
extra_headers: Headers | None = None,
@@ -73,7 +73,7 @@ def insert(
7373
7474
documents: List of documents to index in the RAG system
7575
76-
vector_store_id: ID of the vector database to store the document embeddings
76+
vector_db_id: ID of the vector database to store the document embeddings
7777
7878
extra_headers: Send extra headers
7979
@@ -90,7 +90,7 @@ def insert(
9090
{
9191
"chunk_size_in_tokens": chunk_size_in_tokens,
9292
"documents": documents,
93-
"vector_store_id": vector_store_id,
93+
"vector_db_id": vector_db_id,
9494
},
9595
rag_tool_insert_params.RagToolInsertParams,
9696
),
@@ -104,7 +104,7 @@ def query(
104104
self,
105105
*,
106106
content: InterleavedContent,
107-
vector_store_ids: SequenceNotStr[str],
107+
vector_db_ids: SequenceNotStr[str],
108108
query_config: QueryConfig | Omit = omit,
109109
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
110110
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -119,7 +119,7 @@ def query(
119119
Args:
120120
content: The query content to search for in the indexed documents
121121
122-
vector_store_ids: List of vector database IDs to search within
122+
vector_db_ids: List of vector database IDs to search within
123123
124124
query_config: (Optional) Configuration parameters for the query operation
125125
@@ -136,7 +136,7 @@ def query(
136136
body=maybe_transform(
137137
{
138138
"content": content,
139-
"vector_store_ids": vector_store_ids,
139+
"vector_db_ids": vector_db_ids,
140140
"query_config": query_config,
141141
},
142142
rag_tool_query_params.RagToolQueryParams,
@@ -173,7 +173,7 @@ async def insert(
173173
*,
174174
chunk_size_in_tokens: int,
175175
documents: Iterable[Document],
176-
vector_store_id: str,
176+
vector_db_id: str,
177177
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
178178
# The extra values given here take precedence over values defined on the client or passed to this method.
179179
extra_headers: Headers | None = None,
@@ -189,7 +189,7 @@ async def insert(
189189
190190
documents: List of documents to index in the RAG system
191191
192-
vector_store_id: ID of the vector database to store the document embeddings
192+
vector_db_id: ID of the vector database to store the document embeddings
193193
194194
extra_headers: Send extra headers
195195
@@ -206,7 +206,7 @@ async def insert(
206206
{
207207
"chunk_size_in_tokens": chunk_size_in_tokens,
208208
"documents": documents,
209-
"vector_store_id": vector_store_id,
209+
"vector_db_id": vector_db_id,
210210
},
211211
rag_tool_insert_params.RagToolInsertParams,
212212
),
@@ -220,7 +220,7 @@ async def query(
220220
self,
221221
*,
222222
content: InterleavedContent,
223-
vector_store_ids: SequenceNotStr[str],
223+
vector_db_ids: SequenceNotStr[str],
224224
query_config: QueryConfig | Omit = omit,
225225
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
226226
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -235,7 +235,7 @@ async def query(
235235
Args:
236236
content: The query content to search for in the indexed documents
237237
238-
vector_store_ids: List of vector database IDs to search within
238+
vector_db_ids: List of vector database IDs to search within
239239
240240
query_config: (Optional) Configuration parameters for the query operation
241241
@@ -252,7 +252,7 @@ async def query(
252252
body=await async_maybe_transform(
253253
{
254254
"content": content,
255-
"vector_store_ids": vector_store_ids,
255+
"vector_db_ids": vector_db_ids,
256256
"query_config": query_config,
257257
},
258258
rag_tool_query_params.RagToolQueryParams,

0 commit comments

Comments
 (0)