Skip to content

Commit 406c366

Browse files
feat(api): fixes to URLs
1 parent 4e24a76 commit 406c366

39 files changed

+4138
-261
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 93
1+
configured_endpoints: 108
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-f26df77f0800baeaea40407776f6c1e618756037969411e29de209ce961655dd.yml
33
openapi_spec_hash: e7c2329edc0f9f5aa1c78b6afb996e1c
4-
config_hash: 0412cd40c0609550c1a47c69dd104e4f
4+
config_hash: 8800bdff1a087b9d5211dda2a7b9f66f

api.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,24 @@ Methods:
108108
Types:
109109

110110
```python
111-
from llama_stack_client.types import ListDatasetsResponse
111+
from llama_stack_client.types import (
112+
ListDatasetsResponse,
113+
DatasetRetrieveResponse,
114+
DatasetListResponse,
115+
DatasetIterrowsResponse,
116+
DatasetRegisterResponse,
117+
)
112118
```
113119

120+
Methods:
121+
122+
- <code title="get /v1beta/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>
123+
- <code title="get /v1beta/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>
124+
- <code title="post /v1beta/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>
125+
- <code title="get /v1beta/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>
126+
- <code title="post /v1beta/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>
127+
- <code title="delete /v1beta/datasets/{dataset_id}">client.datasets.<a href="./src/llama_stack_client/resources/datasets.py">unregister</a>(dataset_id) -> None</code>
128+
114129
# Inspect
115130

116131
Types:
@@ -382,12 +397,23 @@ from llama_stack_client.types import (
382397
QuerySpansResponse,
383398
SpanWithStatus,
384399
Trace,
400+
TelemetryGetSpanResponse,
401+
TelemetryGetSpanTreeResponse,
402+
TelemetryQueryMetricsResponse,
403+
TelemetryQuerySpansResponse,
404+
TelemetryQueryTracesResponse,
385405
)
386406
```
387407

388408
Methods:
389409

390-
- <code title="post /v1/telemetry/events">client.telemetry.<a href="./src/llama_stack_client/resources/telemetry.py">log_event</a>(\*\*<a href="src/llama_stack_client/types/telemetry_log_event_params.py">params</a>) -> None</code>
410+
- <code title="get /v1alpha/telemetry/traces/{trace_id}/spans/{span_id}">client.telemetry.<a href="./src/llama_stack_client/resources/telemetry.py">get_span</a>(span_id, \*, trace_id) -> <a href="./src/llama_stack_client/types/telemetry_get_span_response.py">TelemetryGetSpanResponse</a></code>
411+
- <code title="post /v1alpha/telemetry/spans/{span_id}/tree">client.telemetry.<a href="./src/llama_stack_client/resources/telemetry.py">get_span_tree</a>(span_id, \*\*<a href="src/llama_stack_client/types/telemetry_get_span_tree_params.py">params</a>) -> <a href="./src/llama_stack_client/types/telemetry_get_span_tree_response.py">TelemetryGetSpanTreeResponse</a></code>
412+
- <code title="get /v1alpha/telemetry/traces/{trace_id}">client.telemetry.<a href="./src/llama_stack_client/resources/telemetry.py">get_trace</a>(trace_id) -> <a href="./src/llama_stack_client/types/trace.py">Trace</a></code>
413+
- <code title="post /v1alpha/telemetry/metrics/{metric_name}">client.telemetry.<a href="./src/llama_stack_client/resources/telemetry.py">query_metrics</a>(metric_name, \*\*<a href="src/llama_stack_client/types/telemetry_query_metrics_params.py">params</a>) -> <a href="./src/llama_stack_client/types/telemetry_query_metrics_response.py">TelemetryQueryMetricsResponse</a></code>
414+
- <code title="post /v1alpha/telemetry/spans">client.telemetry.<a href="./src/llama_stack_client/resources/telemetry.py">query_spans</a>(\*\*<a href="src/llama_stack_client/types/telemetry_query_spans_params.py">params</a>) -> <a href="./src/llama_stack_client/types/telemetry_query_spans_response.py">TelemetryQuerySpansResponse</a></code>
415+
- <code title="post /v1alpha/telemetry/traces">client.telemetry.<a href="./src/llama_stack_client/resources/telemetry.py">query_traces</a>(\*\*<a href="src/llama_stack_client/types/telemetry_query_traces_params.py">params</a>) -> <a href="./src/llama_stack_client/types/telemetry_query_traces_response.py">TelemetryQueryTracesResponse</a></code>
416+
- <code title="post /v1alpha/telemetry/spans/export">client.telemetry.<a href="./src/llama_stack_client/resources/telemetry.py">save_spans_to_dataset</a>(\*\*<a href="src/llama_stack_client/types/telemetry_save_spans_to_dataset_params.py">params</a>) -> None</code>
391417

392418
# Scoring
393419

@@ -426,9 +452,15 @@ Methods:
426452
Types:
427453

428454
```python
429-
from llama_stack_client.types import Benchmark, ListBenchmarksResponse
455+
from llama_stack_client.types import Benchmark, ListBenchmarksResponse, BenchmarkListResponse
430456
```
431457

458+
Methods:
459+
460+
- <code title="get /v1alpha/eval/benchmarks/{benchmark_id}">client.benchmarks.<a href="./src/llama_stack_client/resources/benchmarks.py">retrieve</a>(benchmark_id) -> <a href="./src/llama_stack_client/types/benchmark.py">Benchmark</a></code>
461+
- <code title="get /v1alpha/eval/benchmarks">client.benchmarks.<a href="./src/llama_stack_client/resources/benchmarks.py">list</a>() -> <a href="./src/llama_stack_client/types/benchmark_list_response.py">BenchmarkListResponse</a></code>
462+
- <code title="post /v1alpha/eval/benchmarks">client.benchmarks.<a href="./src/llama_stack_client/resources/benchmarks.py">register</a>(\*\*<a href="src/llama_stack_client/types/benchmark_register_params.py">params</a>) -> None</code>
463+
432464
# Files
433465

434466
Types:

src/llama_stack_client/_client.py

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@
4343
inspect,
4444
scoring,
4545
shields,
46+
datasets,
4647
providers,
4748
responses,
4849
telemetry,
4950
vector_io,
51+
benchmarks,
5052
embeddings,
5153
toolgroups,
5254
vector_dbs,
@@ -64,10 +66,12 @@
6466
from .resources.inspect import InspectResource, AsyncInspectResource
6567
from .resources.scoring import ScoringResource, AsyncScoringResource
6668
from .resources.shields import ShieldsResource, AsyncShieldsResource
69+
from .resources.datasets import DatasetsResource, AsyncDatasetsResource
6770
from .resources.chat.chat import ChatResource, AsyncChatResource
6871
from .resources.providers import ProvidersResource, AsyncProvidersResource
6972
from .resources.telemetry import TelemetryResource, AsyncTelemetryResource
7073
from .resources.vector_io import VectorIoResource, AsyncVectorIoResource
74+
from .resources.benchmarks import BenchmarksResource, AsyncBenchmarksResource
7175
from .resources.embeddings import EmbeddingsResource, AsyncEmbeddingsResource
7276
from .resources.toolgroups import ToolgroupsResource, AsyncToolgroupsResource
7377
from .resources.vector_dbs import VectorDBsResource, AsyncVectorDBsResource
@@ -177,6 +181,12 @@ def responses(self) -> ResponsesResource:
177181

178182
return ResponsesResource(self)
179183

184+
@cached_property
185+
def datasets(self) -> DatasetsResource:
186+
from .resources.datasets import DatasetsResource
187+
188+
return DatasetsResource(self)
189+
180190
@cached_property
181191
def inspect(self) -> InspectResource:
182192
from .resources.inspect import InspectResource
@@ -279,6 +289,12 @@ def scoring_functions(self) -> ScoringFunctionsResource:
279289

280290
return ScoringFunctionsResource(self)
281291

292+
@cached_property
293+
def benchmarks(self) -> BenchmarksResource:
294+
from .resources.benchmarks import BenchmarksResource
295+
296+
return BenchmarksResource(self)
297+
282298
@cached_property
283299
def files(self) -> FilesResource:
284300
from .resources.files import FilesResource
@@ -487,6 +503,12 @@ def responses(self) -> AsyncResponsesResource:
487503

488504
return AsyncResponsesResource(self)
489505

506+
@cached_property
507+
def datasets(self) -> AsyncDatasetsResource:
508+
from .resources.datasets import AsyncDatasetsResource
509+
510+
return AsyncDatasetsResource(self)
511+
490512
@cached_property
491513
def inspect(self) -> AsyncInspectResource:
492514
from .resources.inspect import AsyncInspectResource
@@ -589,6 +611,12 @@ def scoring_functions(self) -> AsyncScoringFunctionsResource:
589611

590612
return AsyncScoringFunctionsResource(self)
591613

614+
@cached_property
615+
def benchmarks(self) -> AsyncBenchmarksResource:
616+
from .resources.benchmarks import AsyncBenchmarksResource
617+
618+
return AsyncBenchmarksResource(self)
619+
592620
@cached_property
593621
def files(self) -> AsyncFilesResource:
594622
from .resources.files import AsyncFilesResource
@@ -746,6 +774,12 @@ def responses(self) -> responses.ResponsesResourceWithRawResponse:
746774

747775
return ResponsesResourceWithRawResponse(self._client.responses)
748776

777+
@cached_property
778+
def datasets(self) -> datasets.DatasetsResourceWithRawResponse:
779+
from .resources.datasets import DatasetsResourceWithRawResponse
780+
781+
return DatasetsResourceWithRawResponse(self._client.datasets)
782+
749783
@cached_property
750784
def inspect(self) -> inspect.InspectResourceWithRawResponse:
751785
from .resources.inspect import InspectResourceWithRawResponse
@@ -848,6 +882,12 @@ def scoring_functions(self) -> scoring_functions.ScoringFunctionsResourceWithRaw
848882

849883
return ScoringFunctionsResourceWithRawResponse(self._client.scoring_functions)
850884

885+
@cached_property
886+
def benchmarks(self) -> benchmarks.BenchmarksResourceWithRawResponse:
887+
from .resources.benchmarks import BenchmarksResourceWithRawResponse
888+
889+
return BenchmarksResourceWithRawResponse(self._client.benchmarks)
890+
851891
@cached_property
852892
def files(self) -> files.FilesResourceWithRawResponse:
853893
from .resources.files import FilesResourceWithRawResponse
@@ -891,6 +931,12 @@ def responses(self) -> responses.AsyncResponsesResourceWithRawResponse:
891931

892932
return AsyncResponsesResourceWithRawResponse(self._client.responses)
893933

934+
@cached_property
935+
def datasets(self) -> datasets.AsyncDatasetsResourceWithRawResponse:
936+
from .resources.datasets import AsyncDatasetsResourceWithRawResponse
937+
938+
return AsyncDatasetsResourceWithRawResponse(self._client.datasets)
939+
894940
@cached_property
895941
def inspect(self) -> inspect.AsyncInspectResourceWithRawResponse:
896942
from .resources.inspect import AsyncInspectResourceWithRawResponse
@@ -995,6 +1041,12 @@ def scoring_functions(self) -> scoring_functions.AsyncScoringFunctionsResourceWi
9951041

9961042
return AsyncScoringFunctionsResourceWithRawResponse(self._client.scoring_functions)
9971043

1044+
@cached_property
1045+
def benchmarks(self) -> benchmarks.AsyncBenchmarksResourceWithRawResponse:
1046+
from .resources.benchmarks import AsyncBenchmarksResourceWithRawResponse
1047+
1048+
return AsyncBenchmarksResourceWithRawResponse(self._client.benchmarks)
1049+
9981050
@cached_property
9991051
def files(self) -> files.AsyncFilesResourceWithRawResponse:
10001052
from .resources.files import AsyncFilesResourceWithRawResponse
@@ -1038,6 +1090,12 @@ def responses(self) -> responses.ResponsesResourceWithStreamingResponse:
10381090

10391091
return ResponsesResourceWithStreamingResponse(self._client.responses)
10401092

1093+
@cached_property
1094+
def datasets(self) -> datasets.DatasetsResourceWithStreamingResponse:
1095+
from .resources.datasets import DatasetsResourceWithStreamingResponse
1096+
1097+
return DatasetsResourceWithStreamingResponse(self._client.datasets)
1098+
10411099
@cached_property
10421100
def inspect(self) -> inspect.InspectResourceWithStreamingResponse:
10431101
from .resources.inspect import InspectResourceWithStreamingResponse
@@ -1142,6 +1200,12 @@ def scoring_functions(self) -> scoring_functions.ScoringFunctionsResourceWithStr
11421200

11431201
return ScoringFunctionsResourceWithStreamingResponse(self._client.scoring_functions)
11441202

1203+
@cached_property
1204+
def benchmarks(self) -> benchmarks.BenchmarksResourceWithStreamingResponse:
1205+
from .resources.benchmarks import BenchmarksResourceWithStreamingResponse
1206+
1207+
return BenchmarksResourceWithStreamingResponse(self._client.benchmarks)
1208+
11451209
@cached_property
11461210
def files(self) -> files.FilesResourceWithStreamingResponse:
11471211
from .resources.files import FilesResourceWithStreamingResponse
@@ -1185,6 +1249,12 @@ def responses(self) -> responses.AsyncResponsesResourceWithStreamingResponse:
11851249

11861250
return AsyncResponsesResourceWithStreamingResponse(self._client.responses)
11871251

1252+
@cached_property
1253+
def datasets(self) -> datasets.AsyncDatasetsResourceWithStreamingResponse:
1254+
from .resources.datasets import AsyncDatasetsResourceWithStreamingResponse
1255+
1256+
return AsyncDatasetsResourceWithStreamingResponse(self._client.datasets)
1257+
11881258
@cached_property
11891259
def inspect(self) -> inspect.AsyncInspectResourceWithStreamingResponse:
11901260
from .resources.inspect import AsyncInspectResourceWithStreamingResponse
@@ -1289,6 +1359,12 @@ def scoring_functions(self) -> scoring_functions.AsyncScoringFunctionsResourceWi
12891359

12901360
return AsyncScoringFunctionsResourceWithStreamingResponse(self._client.scoring_functions)
12911361

1362+
@cached_property
1363+
def benchmarks(self) -> benchmarks.AsyncBenchmarksResourceWithStreamingResponse:
1364+
from .resources.benchmarks import AsyncBenchmarksResourceWithStreamingResponse
1365+
1366+
return AsyncBenchmarksResourceWithStreamingResponse(self._client.benchmarks)
1367+
12921368
@cached_property
12931369
def files(self) -> files.AsyncFilesResourceWithStreamingResponse:
12941370
from .resources.files import AsyncFilesResourceWithStreamingResponse

src/llama_stack_client/resources/__init__.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@
8080
ShieldsResourceWithStreamingResponse,
8181
AsyncShieldsResourceWithStreamingResponse,
8282
)
83+
from .datasets import (
84+
DatasetsResource,
85+
AsyncDatasetsResource,
86+
DatasetsResourceWithRawResponse,
87+
AsyncDatasetsResourceWithRawResponse,
88+
DatasetsResourceWithStreamingResponse,
89+
AsyncDatasetsResourceWithStreamingResponse,
90+
)
8391
from .providers import (
8492
ProvidersResource,
8593
AsyncProvidersResource,
@@ -112,6 +120,14 @@
112120
VectorIoResourceWithStreamingResponse,
113121
AsyncVectorIoResourceWithStreamingResponse,
114122
)
123+
from .benchmarks import (
124+
BenchmarksResource,
125+
AsyncBenchmarksResource,
126+
BenchmarksResourceWithRawResponse,
127+
AsyncBenchmarksResourceWithRawResponse,
128+
BenchmarksResourceWithStreamingResponse,
129+
AsyncBenchmarksResourceWithStreamingResponse,
130+
)
115131
from .embeddings import (
116132
EmbeddingsResource,
117133
AsyncEmbeddingsResource,
@@ -210,6 +226,12 @@
210226
"AsyncResponsesResourceWithRawResponse",
211227
"ResponsesResourceWithStreamingResponse",
212228
"AsyncResponsesResourceWithStreamingResponse",
229+
"DatasetsResource",
230+
"AsyncDatasetsResource",
231+
"DatasetsResourceWithRawResponse",
232+
"AsyncDatasetsResourceWithRawResponse",
233+
"DatasetsResourceWithStreamingResponse",
234+
"AsyncDatasetsResourceWithStreamingResponse",
213235
"InspectResource",
214236
"AsyncInspectResource",
215237
"InspectResourceWithRawResponse",
@@ -312,6 +334,12 @@
312334
"AsyncScoringFunctionsResourceWithRawResponse",
313335
"ScoringFunctionsResourceWithStreamingResponse",
314336
"AsyncScoringFunctionsResourceWithStreamingResponse",
337+
"BenchmarksResource",
338+
"AsyncBenchmarksResource",
339+
"BenchmarksResourceWithRawResponse",
340+
"AsyncBenchmarksResourceWithRawResponse",
341+
"BenchmarksResourceWithStreamingResponse",
342+
"AsyncBenchmarksResourceWithStreamingResponse",
315343
"FilesResource",
316344
"AsyncFilesResource",
317345
"FilesResourceWithRawResponse",

0 commit comments

Comments
 (0)