Skip to content

Commit c8609a4

Browse files
chore(api)!: /v1/inspect only lists v1 apis by default
llamastack/llama-stack#3948
1 parent d7aab79 commit c8609a4

File tree

107 files changed

+13391
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+13391
-3
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 71
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-96255baaaf07826c5292cbb73073ab40aa7073c53996c3be49441a8ecf95c8ee.yml
3-
openapi_spec_hash: fae0303cbf75bd79be4ae084db015401
1+
configured_endpoints: 104
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-ab75f403b95703f8fe6c284da9efc1cc09d91cb27a4aa4da8660c825b56ddd02.yml
3+
openapi_spec_hash: 10f4950f76234968692b748956c83d52
44
config_hash: a3829dbdaa491194d01f399784d532cd

api.md

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
```python
44
from llama_stack_client.types import (
5+
AgentConfig,
56
CompletionMessage,
67
Document,
78
InterleavedContent,
@@ -10,7 +11,9 @@ from llama_stack_client.types import (
1011
ParamType,
1112
QueryConfig,
1213
QueryResult,
14+
ResponseFormat,
1315
SafetyViolation,
16+
SamplingParams,
1417
ScoringResult,
1518
SystemMessage,
1619
ToolCall,
@@ -413,3 +416,188 @@ Methods:
413416
- <code title="get /v1/files">client.files.<a href="./src/llama_stack_client/resources/files.py">list</a>(\*\*<a href="src/llama_stack_client/types/file_list_params.py">params</a>) -> <a href="./src/llama_stack_client/types/file.py">SyncOpenAICursorPage[File]</a></code>
414417
- <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>
415418
- <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>
419+
420+
# Alpha
421+
422+
## Inference
423+
424+
Types:
425+
426+
```python
427+
from llama_stack_client.types.alpha import InferenceRerankResponse
428+
```
429+
430+
Methods:
431+
432+
- <code title="post /v1alpha/inference/rerank">client.alpha.inference.<a href="./src/llama_stack_client/resources/alpha/inference.py">rerank</a>(\*\*<a href="src/llama_stack_client/types/alpha/inference_rerank_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/inference_rerank_response.py">InferenceRerankResponse</a></code>
433+
434+
## PostTraining
435+
436+
Types:
437+
438+
```python
439+
from llama_stack_client.types.alpha import (
440+
AlgorithmConfig,
441+
ListPostTrainingJobsResponse,
442+
PostTrainingJob,
443+
)
444+
```
445+
446+
Methods:
447+
448+
- <code title="post /v1alpha/post-training/preference-optimize">client.alpha.post_training.<a href="./src/llama_stack_client/resources/alpha/post_training/post_training.py">preference_optimize</a>(\*\*<a href="src/llama_stack_client/types/alpha/post_training_preference_optimize_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/post_training_job.py">PostTrainingJob</a></code>
449+
- <code title="post /v1alpha/post-training/supervised-fine-tune">client.alpha.post_training.<a href="./src/llama_stack_client/resources/alpha/post_training/post_training.py">supervised_fine_tune</a>(\*\*<a href="src/llama_stack_client/types/alpha/post_training_supervised_fine_tune_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/post_training_job.py">PostTrainingJob</a></code>
450+
451+
### Job
452+
453+
Types:
454+
455+
```python
456+
from llama_stack_client.types.alpha.post_training import (
457+
JobListResponse,
458+
JobArtifactsResponse,
459+
JobStatusResponse,
460+
)
461+
```
462+
463+
Methods:
464+
465+
- <code title="get /v1alpha/post-training/jobs">client.alpha.post_training.job.<a href="./src/llama_stack_client/resources/alpha/post_training/job.py">list</a>() -> <a href="./src/llama_stack_client/types/alpha/post_training/job_list_response.py">JobListResponse</a></code>
466+
- <code title="get /v1alpha/post-training/job/artifacts">client.alpha.post_training.job.<a href="./src/llama_stack_client/resources/alpha/post_training/job.py">artifacts</a>(\*\*<a href="src/llama_stack_client/types/alpha/post_training/job_artifacts_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/post_training/job_artifacts_response.py">JobArtifactsResponse</a></code>
467+
- <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>
468+
- <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>
469+
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+
484+
## Eval
485+
486+
Types:
487+
488+
```python
489+
from llama_stack_client.types.alpha import BenchmarkConfig, EvaluateResponse, Job
490+
```
491+
492+
Methods:
493+
494+
- <code title="post /v1alpha/eval/benchmarks/{benchmark_id}/evaluations">client.alpha.eval.<a href="./src/llama_stack_client/resources/alpha/eval/eval.py">evaluate_rows</a>(benchmark_id, \*\*<a href="src/llama_stack_client/types/alpha/eval_evaluate_rows_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/evaluate_response.py">EvaluateResponse</a></code>
495+
- <code title="post /v1alpha/eval/benchmarks/{benchmark_id}/evaluations">client.alpha.eval.<a href="./src/llama_stack_client/resources/alpha/eval/eval.py">evaluate_rows_alpha</a>(benchmark_id, \*\*<a href="src/llama_stack_client/types/alpha/eval_evaluate_rows_alpha_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/evaluate_response.py">EvaluateResponse</a></code>
496+
- <code title="post /v1alpha/eval/benchmarks/{benchmark_id}/jobs">client.alpha.eval.<a href="./src/llama_stack_client/resources/alpha/eval/eval.py">run_eval</a>(benchmark_id, \*\*<a href="src/llama_stack_client/types/alpha/eval_run_eval_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/job.py">Job</a></code>
497+
- <code title="post /v1alpha/eval/benchmarks/{benchmark_id}/jobs">client.alpha.eval.<a href="./src/llama_stack_client/resources/alpha/eval/eval.py">run_eval_alpha</a>(benchmark_id, \*\*<a href="src/llama_stack_client/types/alpha/eval_run_eval_alpha_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/job.py">Job</a></code>
498+
499+
### Jobs
500+
501+
Methods:
502+
503+
- <code title="get /v1alpha/eval/benchmarks/{benchmark_id}/jobs/{job_id}/result">client.alpha.eval.jobs.<a href="./src/llama_stack_client/resources/alpha/eval/jobs.py">retrieve</a>(job_id, \*, benchmark_id) -> <a href="./src/llama_stack_client/types/alpha/evaluate_response.py">EvaluateResponse</a></code>
504+
- <code title="delete /v1alpha/eval/benchmarks/{benchmark_id}/jobs/{job_id}">client.alpha.eval.jobs.<a href="./src/llama_stack_client/resources/alpha/eval/jobs.py">cancel</a>(job_id, \*, benchmark_id) -> None</code>
505+
- <code title="get /v1alpha/eval/benchmarks/{benchmark_id}/jobs/{job_id}">client.alpha.eval.jobs.<a href="./src/llama_stack_client/resources/alpha/eval/jobs.py">status</a>(job_id, \*, benchmark_id) -> <a href="./src/llama_stack_client/types/alpha/job.py">Job</a></code>
506+
507+
## Agents
508+
509+
Types:
510+
511+
```python
512+
from llama_stack_client.types.alpha import (
513+
InferenceStep,
514+
MemoryRetrievalStep,
515+
ShieldCallStep,
516+
ToolExecutionStep,
517+
ToolResponse,
518+
AgentCreateResponse,
519+
AgentRetrieveResponse,
520+
AgentListResponse,
521+
)
522+
```
523+
524+
Methods:
525+
526+
- <code title="post /v1alpha/agents">client.alpha.agents.<a href="./src/llama_stack_client/resources/alpha/agents/agents.py">create</a>(\*\*<a href="src/llama_stack_client/types/alpha/agent_create_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/agent_create_response.py">AgentCreateResponse</a></code>
527+
- <code title="get /v1alpha/agents/{agent_id}">client.alpha.agents.<a href="./src/llama_stack_client/resources/alpha/agents/agents.py">retrieve</a>(agent_id) -> <a href="./src/llama_stack_client/types/alpha/agent_retrieve_response.py">AgentRetrieveResponse</a></code>
528+
- <code title="get /v1alpha/agents">client.alpha.agents.<a href="./src/llama_stack_client/resources/alpha/agents/agents.py">list</a>(\*\*<a href="src/llama_stack_client/types/alpha/agent_list_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/agent_list_response.py">AgentListResponse</a></code>
529+
- <code title="delete /v1alpha/agents/{agent_id}">client.alpha.agents.<a href="./src/llama_stack_client/resources/alpha/agents/agents.py">delete</a>(agent_id) -> None</code>
530+
531+
### Session
532+
533+
Types:
534+
535+
```python
536+
from llama_stack_client.types.alpha.agents import (
537+
Session,
538+
SessionCreateResponse,
539+
SessionListResponse,
540+
)
541+
```
542+
543+
Methods:
544+
545+
- <code title="post /v1alpha/agents/{agent_id}/session">client.alpha.agents.session.<a href="./src/llama_stack_client/resources/alpha/agents/session.py">create</a>(agent_id, \*\*<a href="src/llama_stack_client/types/alpha/agents/session_create_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/agents/session_create_response.py">SessionCreateResponse</a></code>
546+
- <code title="get /v1alpha/agents/{agent_id}/session/{session_id}">client.alpha.agents.session.<a href="./src/llama_stack_client/resources/alpha/agents/session.py">retrieve</a>(session_id, \*, agent_id, \*\*<a href="src/llama_stack_client/types/alpha/agents/session_retrieve_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/agents/session.py">Session</a></code>
547+
- <code title="get /v1alpha/agents/{agent_id}/sessions">client.alpha.agents.session.<a href="./src/llama_stack_client/resources/alpha/agents/session.py">list</a>(agent_id, \*\*<a href="src/llama_stack_client/types/alpha/agents/session_list_params.py">params</a>) -> <a href="./src/llama_stack_client/types/alpha/agents/session_list_response.py">SessionListResponse</a></code>
548+
- <code title="delete /v1alpha/agents/{agent_id}/session/{session_id}">client.alpha.agents.session.<a href="./src/llama_stack_client/resources/alpha/agents/session.py">delete</a>(session_id, \*, agent_id) -> None</code>
549+
550+
### Steps
551+
552+
Types:
553+
554+
```python
555+
from llama_stack_client.types.alpha.agents import StepRetrieveResponse
556+
```
557+
558+
Methods:
559+
560+
- <code title="get /v1alpha/agents/{agent_id}/session/{session_id}/turn/{turn_id}/step/{step_id}">client.alpha.agents.steps.<a href="./src/llama_stack_client/resources/alpha/agents/steps.py">retrieve</a>(step_id, \*, agent_id, session_id, turn_id) -> <a href="./src/llama_stack_client/types/alpha/agents/step_retrieve_response.py">StepRetrieveResponse</a></code>
561+
562+
### Turn
563+
564+
Types:
565+
566+
```python
567+
from llama_stack_client.types.alpha.agents import (
568+
AgentTurnResponseStreamChunk,
569+
Turn,
570+
TurnResponseEvent,
571+
)
572+
```
573+
574+
Methods:
575+
576+
- <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>
577+
- <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>
578+
- <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: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939

4040
if TYPE_CHECKING:
4141
from .resources import (
42+
beta,
4243
chat,
44+
alpha,
4345
files,
4446
tools,
4547
models,
@@ -68,11 +70,13 @@
6870
from .resources.inspect import InspectResource, AsyncInspectResource
6971
from .resources.scoring import ScoringResource, AsyncScoringResource
7072
from .resources.shields import ShieldsResource, AsyncShieldsResource
73+
from .resources.beta.beta import BetaResource, AsyncBetaResource
7174
from .resources.chat.chat import ChatResource, AsyncChatResource
7275
from .resources.providers import ProvidersResource, AsyncProvidersResource
7376
from .resources.vector_io import VectorIoResource, AsyncVectorIoResource
7477
from .resources.embeddings import EmbeddingsResource, AsyncEmbeddingsResource
7578
from .resources.toolgroups import ToolgroupsResource, AsyncToolgroupsResource
79+
from .resources.alpha.alpha import AlphaResource, AsyncAlphaResource
7680
from .resources.completions import CompletionsResource, AsyncCompletionsResource
7781
from .resources.moderations import ModerationsResource, AsyncModerationsResource
7882
from .resources.models.models import ModelsResource, AsyncModelsResource
@@ -281,6 +285,18 @@ def files(self) -> FilesResource:
281285

282286
return FilesResource(self)
283287

288+
@cached_property
289+
def alpha(self) -> AlphaResource:
290+
from .resources.alpha import AlphaResource
291+
292+
return AlphaResource(self)
293+
294+
@cached_property
295+
def beta(self) -> BetaResource:
296+
from .resources.beta import BetaResource
297+
298+
return BetaResource(self)
299+
284300
@cached_property
285301
def with_raw_response(self) -> LlamaStackClientWithRawResponse:
286302
return LlamaStackClientWithRawResponse(self)
@@ -579,6 +595,18 @@ def files(self) -> AsyncFilesResource:
579595

580596
return AsyncFilesResource(self)
581597

598+
@cached_property
599+
def alpha(self) -> AsyncAlphaResource:
600+
from .resources.alpha import AsyncAlphaResource
601+
602+
return AsyncAlphaResource(self)
603+
604+
@cached_property
605+
def beta(self) -> AsyncBetaResource:
606+
from .resources.beta import AsyncBetaResource
607+
608+
return AsyncBetaResource(self)
609+
582610
@cached_property
583611
def with_raw_response(self) -> AsyncLlamaStackClientWithRawResponse:
584612
return AsyncLlamaStackClientWithRawResponse(self)
@@ -826,6 +854,18 @@ def files(self) -> files.FilesResourceWithRawResponse:
826854

827855
return FilesResourceWithRawResponse(self._client.files)
828856

857+
@cached_property
858+
def alpha(self) -> alpha.AlphaResourceWithRawResponse:
859+
from .resources.alpha import AlphaResourceWithRawResponse
860+
861+
return AlphaResourceWithRawResponse(self._client.alpha)
862+
863+
@cached_property
864+
def beta(self) -> beta.BetaResourceWithRawResponse:
865+
from .resources.beta import BetaResourceWithRawResponse
866+
867+
return BetaResourceWithRawResponse(self._client.beta)
868+
829869

830870
class AsyncLlamaStackClientWithRawResponse:
831871
_client: AsyncLlamaStackClient
@@ -961,6 +1001,18 @@ def files(self) -> files.AsyncFilesResourceWithRawResponse:
9611001

9621002
return AsyncFilesResourceWithRawResponse(self._client.files)
9631003

1004+
@cached_property
1005+
def alpha(self) -> alpha.AsyncAlphaResourceWithRawResponse:
1006+
from .resources.alpha import AsyncAlphaResourceWithRawResponse
1007+
1008+
return AsyncAlphaResourceWithRawResponse(self._client.alpha)
1009+
1010+
@cached_property
1011+
def beta(self) -> beta.AsyncBetaResourceWithRawResponse:
1012+
from .resources.beta import AsyncBetaResourceWithRawResponse
1013+
1014+
return AsyncBetaResourceWithRawResponse(self._client.beta)
1015+
9641016

9651017
class LlamaStackClientWithStreamedResponse:
9661018
_client: LlamaStackClient
@@ -1096,6 +1148,18 @@ def files(self) -> files.FilesResourceWithStreamingResponse:
10961148

10971149
return FilesResourceWithStreamingResponse(self._client.files)
10981150

1151+
@cached_property
1152+
def alpha(self) -> alpha.AlphaResourceWithStreamingResponse:
1153+
from .resources.alpha import AlphaResourceWithStreamingResponse
1154+
1155+
return AlphaResourceWithStreamingResponse(self._client.alpha)
1156+
1157+
@cached_property
1158+
def beta(self) -> beta.BetaResourceWithStreamingResponse:
1159+
from .resources.beta import BetaResourceWithStreamingResponse
1160+
1161+
return BetaResourceWithStreamingResponse(self._client.beta)
1162+
10991163

11001164
class AsyncLlamaStackClientWithStreamedResponse:
11011165
_client: AsyncLlamaStackClient
@@ -1231,6 +1295,18 @@ def files(self) -> files.AsyncFilesResourceWithStreamingResponse:
12311295

12321296
return AsyncFilesResourceWithStreamingResponse(self._client.files)
12331297

1298+
@cached_property
1299+
def alpha(self) -> alpha.AsyncAlphaResourceWithStreamingResponse:
1300+
from .resources.alpha import AsyncAlphaResourceWithStreamingResponse
1301+
1302+
return AsyncAlphaResourceWithStreamingResponse(self._client.alpha)
1303+
1304+
@cached_property
1305+
def beta(self) -> beta.AsyncBetaResourceWithStreamingResponse:
1306+
from .resources.beta import AsyncBetaResourceWithStreamingResponse
1307+
1308+
return AsyncBetaResourceWithStreamingResponse(self._client.beta)
1309+
12341310

12351311
Client = LlamaStackClient
12361312

0 commit comments

Comments
 (0)