Skip to content

Commit 6c0db65

Browse files
feat(api): manual updates
1 parent 90b0f59 commit 6c0db65

File tree

14 files changed

+101
-107
lines changed

14 files changed

+101
-107
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 104
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-97b91eca4a3ff251edc02636b1a638866675d6c1abd46cd9fc18bc50a1de9656.yml
33
openapi_spec_hash: 7302f1aa50090e3de78e34c184371267
4-
config_hash: 364c8cc514fe5aa69bd24c7f3721985b
4+
config_hash: a3829dbdaa491194d01f399784d532cd

api.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -401,20 +401,6 @@ Methods:
401401
- <code title="get /v1/scoring-functions">client.scoring_functions.<a href="./src/llama_stack_client/resources/scoring_functions.py">list</a>() -> <a href="./src/llama_stack_client/types/scoring_function_list_response.py">ScoringFunctionListResponse</a></code>
402402
- <code title="post /v1/scoring-functions">client.scoring_functions.<a href="./src/llama_stack_client/resources/scoring_functions.py">register</a>(\*\*<a href="src/llama_stack_client/types/scoring_function_register_params.py">params</a>) -> None</code>
403403

404-
# Benchmarks
405-
406-
Types:
407-
408-
```python
409-
from llama_stack_client.types import Benchmark, ListBenchmarksResponse, BenchmarkListResponse
410-
```
411-
412-
Methods:
413-
414-
- <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>
415-
- <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>
416-
- <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>
417-
418404
# Files
419405

420406
Types:
@@ -481,6 +467,20 @@ Methods:
481467
- <code title="post /v1alpha/post-training/job/cancel">client.alpha.post_training.job.<a href="./src/llama_stack_client/resources/alpha/post_training/job.py">cancel</a>(\*\*<a href="src/llama_stack_client/types/alpha/post_training/job_cancel_params.py">params</a>) -> None</code>
482468
- <code title="get /v1alpha/post-training/job/status">client.alpha.post_training.job.<a href="./src/llama_stack_client/resources/alpha/post_training/job.py">status</a>(\*\*<a href="src/llama_stack_client/types/alpha/post_training/job_status_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/post_training/job_status_response.py">JobStatusResponse</a></code>
483469

470+
## Benchmarks
471+
472+
Types:
473+
474+
```python
475+
from llama_stack_client.types.alpha import Benchmark, ListBenchmarksResponse, BenchmarkListResponse
476+
```
477+
478+
Methods:
479+
480+
- <code title="get /v1alpha/eval/benchmarks/{benchmark_id}">client.alpha.benchmarks.<a href="./src/llama_stack_client/resources/alpha/benchmarks.py">retrieve</a>(benchmark_id) -> <a href="./src/llama_stack_client/types/alpha/benchmark.py">Benchmark</a></code>
481+
- <code title="get /v1alpha/eval/benchmarks">client.alpha.benchmarks.<a href="./src/llama_stack_client/resources/alpha/benchmarks.py">list</a>() -> <a href="./src/llama_stack_client/types/alpha/benchmark_list_response.py">BenchmarkListResponse</a></code>
482+
- <code title="post /v1alpha/eval/benchmarks">client.alpha.benchmarks.<a href="./src/llama_stack_client/resources/alpha/benchmarks.py">register</a>(\*\*<a href="src/llama_stack_client/types/alpha/benchmark_register_params.py">params</a>) -> None</code>
483+
484484
## Eval
485485

486486
Types:

src/llama_stack_client/_client.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
providers,
5454
responses,
5555
vector_io,
56-
benchmarks,
5756
embeddings,
5857
toolgroups,
5958
completions,
@@ -75,7 +74,6 @@
7574
from .resources.chat.chat import ChatResource, AsyncChatResource
7675
from .resources.providers import ProvidersResource, AsyncProvidersResource
7776
from .resources.vector_io import VectorIoResource, AsyncVectorIoResource
78-
from .resources.benchmarks import BenchmarksResource, AsyncBenchmarksResource
7977
from .resources.embeddings import EmbeddingsResource, AsyncEmbeddingsResource
8078
from .resources.toolgroups import ToolgroupsResource, AsyncToolgroupsResource
8179
from .resources.alpha.alpha import AlphaResource, AsyncAlphaResource
@@ -281,12 +279,6 @@ def scoring_functions(self) -> ScoringFunctionsResource:
281279

282280
return ScoringFunctionsResource(self)
283281

284-
@cached_property
285-
def benchmarks(self) -> BenchmarksResource:
286-
from .resources.benchmarks import BenchmarksResource
287-
288-
return BenchmarksResource(self)
289-
290282
@cached_property
291283
def files(self) -> FilesResource:
292284
from .resources.files import FilesResource
@@ -597,12 +589,6 @@ def scoring_functions(self) -> AsyncScoringFunctionsResource:
597589

598590
return AsyncScoringFunctionsResource(self)
599591

600-
@cached_property
601-
def benchmarks(self) -> AsyncBenchmarksResource:
602-
from .resources.benchmarks import AsyncBenchmarksResource
603-
604-
return AsyncBenchmarksResource(self)
605-
606592
@cached_property
607593
def files(self) -> AsyncFilesResource:
608594
from .resources.files import AsyncFilesResource
@@ -862,12 +848,6 @@ def scoring_functions(self) -> scoring_functions.ScoringFunctionsResourceWithRaw
862848

863849
return ScoringFunctionsResourceWithRawResponse(self._client.scoring_functions)
864850

865-
@cached_property
866-
def benchmarks(self) -> benchmarks.BenchmarksResourceWithRawResponse:
867-
from .resources.benchmarks import BenchmarksResourceWithRawResponse
868-
869-
return BenchmarksResourceWithRawResponse(self._client.benchmarks)
870-
871851
@cached_property
872852
def files(self) -> files.FilesResourceWithRawResponse:
873853
from .resources.files import FilesResourceWithRawResponse
@@ -1015,12 +995,6 @@ def scoring_functions(self) -> scoring_functions.AsyncScoringFunctionsResourceWi
1015995

1016996
return AsyncScoringFunctionsResourceWithRawResponse(self._client.scoring_functions)
1017997

1018-
@cached_property
1019-
def benchmarks(self) -> benchmarks.AsyncBenchmarksResourceWithRawResponse:
1020-
from .resources.benchmarks import AsyncBenchmarksResourceWithRawResponse
1021-
1022-
return AsyncBenchmarksResourceWithRawResponse(self._client.benchmarks)
1023-
1024998
@cached_property
1025999
def files(self) -> files.AsyncFilesResourceWithRawResponse:
10261000
from .resources.files import AsyncFilesResourceWithRawResponse
@@ -1168,12 +1142,6 @@ def scoring_functions(self) -> scoring_functions.ScoringFunctionsResourceWithStr
11681142

11691143
return ScoringFunctionsResourceWithStreamingResponse(self._client.scoring_functions)
11701144

1171-
@cached_property
1172-
def benchmarks(self) -> benchmarks.BenchmarksResourceWithStreamingResponse:
1173-
from .resources.benchmarks import BenchmarksResourceWithStreamingResponse
1174-
1175-
return BenchmarksResourceWithStreamingResponse(self._client.benchmarks)
1176-
11771145
@cached_property
11781146
def files(self) -> files.FilesResourceWithStreamingResponse:
11791147
from .resources.files import FilesResourceWithStreamingResponse
@@ -1321,12 +1289,6 @@ def scoring_functions(self) -> scoring_functions.AsyncScoringFunctionsResourceWi
13211289

13221290
return AsyncScoringFunctionsResourceWithStreamingResponse(self._client.scoring_functions)
13231291

1324-
@cached_property
1325-
def benchmarks(self) -> benchmarks.AsyncBenchmarksResourceWithStreamingResponse:
1326-
from .resources.benchmarks import AsyncBenchmarksResourceWithStreamingResponse
1327-
1328-
return AsyncBenchmarksResourceWithStreamingResponse(self._client.benchmarks)
1329-
13301292
@cached_property
13311293
def files(self) -> files.AsyncFilesResourceWithStreamingResponse:
13321294
from .resources.files import AsyncFilesResourceWithStreamingResponse

src/llama_stack_client/resources/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,6 @@
118118
VectorIoResourceWithStreamingResponse,
119119
AsyncVectorIoResourceWithStreamingResponse,
120120
)
121-
from .benchmarks import (
122-
BenchmarksResource,
123-
AsyncBenchmarksResource,
124-
BenchmarksResourceWithRawResponse,
125-
AsyncBenchmarksResourceWithRawResponse,
126-
BenchmarksResourceWithStreamingResponse,
127-
AsyncBenchmarksResourceWithStreamingResponse,
128-
)
129121
from .embeddings import (
130122
EmbeddingsResource,
131123
AsyncEmbeddingsResource,
@@ -320,12 +312,6 @@
320312
"AsyncScoringFunctionsResourceWithRawResponse",
321313
"ScoringFunctionsResourceWithStreamingResponse",
322314
"AsyncScoringFunctionsResourceWithStreamingResponse",
323-
"BenchmarksResource",
324-
"AsyncBenchmarksResource",
325-
"BenchmarksResourceWithRawResponse",
326-
"AsyncBenchmarksResourceWithRawResponse",
327-
"BenchmarksResourceWithStreamingResponse",
328-
"AsyncBenchmarksResourceWithStreamingResponse",
329315
"FilesResource",
330316
"AsyncFilesResource",
331317
"FilesResourceWithRawResponse",

src/llama_stack_client/resources/alpha/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@
3838
InferenceResourceWithStreamingResponse,
3939
AsyncInferenceResourceWithStreamingResponse,
4040
)
41+
from .benchmarks import (
42+
BenchmarksResource,
43+
AsyncBenchmarksResource,
44+
BenchmarksResourceWithRawResponse,
45+
AsyncBenchmarksResourceWithRawResponse,
46+
BenchmarksResourceWithStreamingResponse,
47+
AsyncBenchmarksResourceWithStreamingResponse,
48+
)
4149
from .post_training import (
4250
PostTrainingResource,
4351
AsyncPostTrainingResource,
@@ -60,6 +68,12 @@
6068
"AsyncPostTrainingResourceWithRawResponse",
6169
"PostTrainingResourceWithStreamingResponse",
6270
"AsyncPostTrainingResourceWithStreamingResponse",
71+
"BenchmarksResource",
72+
"AsyncBenchmarksResource",
73+
"BenchmarksResourceWithRawResponse",
74+
"AsyncBenchmarksResourceWithRawResponse",
75+
"BenchmarksResourceWithStreamingResponse",
76+
"AsyncBenchmarksResourceWithStreamingResponse",
6377
"EvalResource",
6478
"AsyncEvalResource",
6579
"EvalResourceWithRawResponse",

src/llama_stack_client/resources/alpha/alpha.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
InferenceResourceWithStreamingResponse,
2626
AsyncInferenceResourceWithStreamingResponse,
2727
)
28+
from .benchmarks import (
29+
BenchmarksResource,
30+
AsyncBenchmarksResource,
31+
BenchmarksResourceWithRawResponse,
32+
AsyncBenchmarksResourceWithRawResponse,
33+
BenchmarksResourceWithStreamingResponse,
34+
AsyncBenchmarksResourceWithStreamingResponse,
35+
)
2836
from ..._resource import SyncAPIResource, AsyncAPIResource
2937
from .agents.agents import (
3038
AgentsResource,
@@ -55,6 +63,10 @@ def inference(self) -> InferenceResource:
5563
def post_training(self) -> PostTrainingResource:
5664
return PostTrainingResource(self._client)
5765

66+
@cached_property
67+
def benchmarks(self) -> BenchmarksResource:
68+
return BenchmarksResource(self._client)
69+
5870
@cached_property
5971
def eval(self) -> EvalResource:
6072
return EvalResource(self._client)
@@ -92,6 +104,10 @@ def inference(self) -> AsyncInferenceResource:
92104
def post_training(self) -> AsyncPostTrainingResource:
93105
return AsyncPostTrainingResource(self._client)
94106

107+
@cached_property
108+
def benchmarks(self) -> AsyncBenchmarksResource:
109+
return AsyncBenchmarksResource(self._client)
110+
95111
@cached_property
96112
def eval(self) -> AsyncEvalResource:
97113
return AsyncEvalResource(self._client)
@@ -132,6 +148,10 @@ def inference(self) -> InferenceResourceWithRawResponse:
132148
def post_training(self) -> PostTrainingResourceWithRawResponse:
133149
return PostTrainingResourceWithRawResponse(self._alpha.post_training)
134150

151+
@cached_property
152+
def benchmarks(self) -> BenchmarksResourceWithRawResponse:
153+
return BenchmarksResourceWithRawResponse(self._alpha.benchmarks)
154+
135155
@cached_property
136156
def eval(self) -> EvalResourceWithRawResponse:
137157
return EvalResourceWithRawResponse(self._alpha.eval)
@@ -153,6 +173,10 @@ def inference(self) -> AsyncInferenceResourceWithRawResponse:
153173
def post_training(self) -> AsyncPostTrainingResourceWithRawResponse:
154174
return AsyncPostTrainingResourceWithRawResponse(self._alpha.post_training)
155175

176+
@cached_property
177+
def benchmarks(self) -> AsyncBenchmarksResourceWithRawResponse:
178+
return AsyncBenchmarksResourceWithRawResponse(self._alpha.benchmarks)
179+
156180
@cached_property
157181
def eval(self) -> AsyncEvalResourceWithRawResponse:
158182
return AsyncEvalResourceWithRawResponse(self._alpha.eval)
@@ -174,6 +198,10 @@ def inference(self) -> InferenceResourceWithStreamingResponse:
174198
def post_training(self) -> PostTrainingResourceWithStreamingResponse:
175199
return PostTrainingResourceWithStreamingResponse(self._alpha.post_training)
176200

201+
@cached_property
202+
def benchmarks(self) -> BenchmarksResourceWithStreamingResponse:
203+
return BenchmarksResourceWithStreamingResponse(self._alpha.benchmarks)
204+
177205
@cached_property
178206
def eval(self) -> EvalResourceWithStreamingResponse:
179207
return EvalResourceWithStreamingResponse(self._alpha.eval)
@@ -195,6 +223,10 @@ def inference(self) -> AsyncInferenceResourceWithStreamingResponse:
195223
def post_training(self) -> AsyncPostTrainingResourceWithStreamingResponse:
196224
return AsyncPostTrainingResourceWithStreamingResponse(self._alpha.post_training)
197225

226+
@cached_property
227+
def benchmarks(self) -> AsyncBenchmarksResourceWithStreamingResponse:
228+
return AsyncBenchmarksResourceWithStreamingResponse(self._alpha.benchmarks)
229+
198230
@cached_property
199231
def eval(self) -> AsyncEvalResourceWithStreamingResponse:
200232
return AsyncEvalResourceWithStreamingResponse(self._alpha.eval)

src/llama_stack_client/resources/benchmarks.py renamed to src/llama_stack_client/resources/alpha/benchmarks.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212

1313
import httpx
1414

15-
from ..types import benchmark_register_params
16-
from .._types import Body, Omit, Query, Headers, NoneType, NotGiven, SequenceNotStr, omit, not_given
17-
from .._utils import maybe_transform, async_maybe_transform
18-
from .._compat import cached_property
19-
from .._resource import SyncAPIResource, AsyncAPIResource
20-
from .._response import (
15+
from ..._types import Body, Omit, Query, Headers, NoneType, NotGiven, SequenceNotStr, omit, not_given
16+
from ..._utils import maybe_transform, async_maybe_transform
17+
from ..._compat import cached_property
18+
from ..._resource import SyncAPIResource, AsyncAPIResource
19+
from ..._response import (
2120
to_raw_response_wrapper,
2221
to_streamed_response_wrapper,
2322
async_to_raw_response_wrapper,
2423
async_to_streamed_response_wrapper,
2524
)
26-
from .._wrappers import DataWrapper
27-
from .._base_client import make_request_options
28-
from ..types.benchmark import Benchmark
29-
from ..types.benchmark_list_response import BenchmarkListResponse
25+
from ..._wrappers import DataWrapper
26+
from ...types.alpha import benchmark_register_params
27+
from ..._base_client import make_request_options
28+
from ...types.alpha.benchmark import Benchmark
29+
from ...types.alpha.benchmark_list_response import BenchmarkListResponse
3030

3131
__all__ = ["BenchmarksResource", "AsyncBenchmarksResource"]
3232

src/llama_stack_client/types/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
)
3232
from .shield import Shield as Shield
3333
from .tool_def import ToolDef as ToolDef
34-
from .benchmark import Benchmark as Benchmark
3534
from .route_info import RouteInfo as RouteInfo
3635
from .scoring_fn import ScoringFn as ScoringFn
3736
from .tool_group import ToolGroup as ToolGroup
@@ -70,19 +69,16 @@
7069
from .shield_register_params import ShieldRegisterParams as ShieldRegisterParams
7170
from .tool_invocation_result import ToolInvocationResult as ToolInvocationResult
7271
from .vector_io_query_params import VectorIoQueryParams as VectorIoQueryParams
73-
from .benchmark_list_response import BenchmarkListResponse as BenchmarkListResponse
7472
from .embedding_create_params import EmbeddingCreateParams as EmbeddingCreateParams
7573
from .list_providers_response import ListProvidersResponse as ListProvidersResponse
7674
from .scoring_fn_params_param import ScoringFnParamsParam as ScoringFnParamsParam
7775
from .toolgroup_list_response import ToolgroupListResponse as ToolgroupListResponse
7876
from .vector_io_insert_params import VectorIoInsertParams as VectorIoInsertParams
7977
from .completion_create_params import CompletionCreateParams as CompletionCreateParams
80-
from .list_benchmarks_response import ListBenchmarksResponse as ListBenchmarksResponse
8178
from .moderation_create_params import ModerationCreateParams as ModerationCreateParams
8279
from .response_delete_response import ResponseDeleteResponse as ResponseDeleteResponse
8380
from .safety_run_shield_params import SafetyRunShieldParams as SafetyRunShieldParams
8481
from .vector_store_list_params import VectorStoreListParams as VectorStoreListParams
85-
from .benchmark_register_params import BenchmarkRegisterParams as BenchmarkRegisterParams
8682
from .list_tool_groups_response import ListToolGroupsResponse as ListToolGroupsResponse
8783
from .toolgroup_register_params import ToolgroupRegisterParams as ToolgroupRegisterParams
8884
from .completion_create_response import CompletionCreateResponse as CompletionCreateResponse

src/llama_stack_client/types/alpha/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from __future__ import annotations
1010

1111
from .job import Job as Job
12+
from .benchmark import Benchmark as Benchmark
1213
from .tool_response import ToolResponse as ToolResponse
1314
from .inference_step import InferenceStep as InferenceStep
1415
from .shield_call_step import ShieldCallStep as ShieldCallStep
@@ -25,7 +26,10 @@
2526
from .algorithm_config_param import AlgorithmConfigParam as AlgorithmConfigParam
2627
from .benchmark_config_param import BenchmarkConfigParam as BenchmarkConfigParam
2728
from .agent_retrieve_response import AgentRetrieveResponse as AgentRetrieveResponse
29+
from .benchmark_list_response import BenchmarkListResponse as BenchmarkListResponse
2830
from .inference_rerank_params import InferenceRerankParams as InferenceRerankParams
31+
from .list_benchmarks_response import ListBenchmarksResponse as ListBenchmarksResponse
32+
from .benchmark_register_params import BenchmarkRegisterParams as BenchmarkRegisterParams
2933
from .eval_evaluate_rows_params import EvalEvaluateRowsParams as EvalEvaluateRowsParams
3034
from .inference_rerank_response import InferenceRerankResponse as InferenceRerankResponse
3135
from .eval_run_eval_alpha_params import EvalRunEvalAlphaParams as EvalRunEvalAlphaParams

src/llama_stack_client/types/benchmark.py renamed to src/llama_stack_client/types/alpha/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing import Dict, List, Union, Optional
1010
from typing_extensions import Literal
1111

12-
from .._models import BaseModel
12+
from ..._models import BaseModel
1313

1414
__all__ = ["Benchmark"]
1515

0 commit comments

Comments
 (0)