Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.3.0-alpha.4"
".": "0.3.0-alpha.5"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 108
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-b220f9f8667d2af8007134d0403b24452c20c9c512ca87d0b69b20b761272609.yml
openapi_spec_hash: cde1096a830f2081d68f858f020fd53f
config_hash: 8800bdff1a087b9d5211dda2a7b9f66f
configured_endpoints: 115
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-8a12a05ba6892999ac506f69d5cbbc7218f28ee1a11bf8e0e548c603435bb643.yml
openapi_spec_hash: 871ce212a98bdad4a44ec7fbf58d9fcb
config_hash: 4c1ba9dc45c31189cd1b039d003a3544
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.3.0-alpha.5 (2025-10-10)

Full Changelog: [v0.3.0-alpha.4...v0.3.0-alpha.5](https://github.com/llamastack/llama-stack-client-python/compare/v0.3.0-alpha.4...v0.3.0-alpha.5)

### Features

* **api:** several updates including Conversations, Responses changes, etc. ([3680c9f](https://github.com/llamastack/llama-stack-client-python/commit/3680c9f61146d2a42243a89c4ab28e2161f7ce29))


### Chores

* **internal:** codegen related update ([b8bfc9c](https://github.com/llamastack/llama-stack-client-python/commit/b8bfc9c69e378c89cc806b659bf3d42e4b4e2ec5))

## 0.3.0-alpha.4 (2025-10-02)

Full Changelog: [v0.3.0-alpha.3...v0.3.0-alpha.4](https://github.com/llamastack/llama-stack-client-python/compare/v0.3.0-alpha.3...v0.3.0-alpha.4)
Expand Down
41 changes: 34 additions & 7 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,39 @@ Methods:

- <code title="get /v1/responses/{response_id}/input_items">client.responses.input_items.<a href="./src/llama_stack_client/resources/responses/input_items.py">list</a>(response_id, \*\*<a href="src/llama_stack_client/types/responses/input_item_list_params.py">params</a>) -> <a href="./src/llama_stack_client/types/responses/input_item_list_response.py">InputItemListResponse</a></code>

# Conversations

Types:

```python
from llama_stack_client.types import ConversationObject, ConversationDeleteResponse
```

Methods:

- <code title="post /v1/conversations">client.conversations.<a href="./src/llama_stack_client/resources/conversations/conversations.py">create</a>(\*\*<a href="src/llama_stack_client/types/conversation_create_params.py">params</a>) -> <a href="./src/llama_stack_client/types/conversation_object.py">ConversationObject</a></code>
- <code title="get /v1/conversations/{conversation_id}">client.conversations.<a href="./src/llama_stack_client/resources/conversations/conversations.py">retrieve</a>(conversation_id) -> <a href="./src/llama_stack_client/types/conversation_object.py">ConversationObject</a></code>
- <code title="post /v1/conversations/{conversation_id}">client.conversations.<a href="./src/llama_stack_client/resources/conversations/conversations.py">update</a>(conversation_id, \*\*<a href="src/llama_stack_client/types/conversation_update_params.py">params</a>) -> <a href="./src/llama_stack_client/types/conversation_object.py">ConversationObject</a></code>
- <code title="delete /v1/conversations/{conversation_id}">client.conversations.<a href="./src/llama_stack_client/resources/conversations/conversations.py">delete</a>(conversation_id) -> <a href="./src/llama_stack_client/types/conversation_delete_response.py">ConversationDeleteResponse</a></code>

## Items

Types:

```python
from llama_stack_client.types.conversations import (
ItemCreateResponse,
ItemListResponse,
ItemGetResponse,
)
```

Methods:

- <code title="post /v1/conversations/{conversation_id}/items">client.conversations.items.<a href="./src/llama_stack_client/resources/conversations/items.py">create</a>(conversation_id, \*\*<a href="src/llama_stack_client/types/conversations/item_create_params.py">params</a>) -> <a href="./src/llama_stack_client/types/conversations/item_create_response.py">ItemCreateResponse</a></code>
- <code title="get /v1/conversations/{conversation_id}/items">client.conversations.items.<a href="./src/llama_stack_client/resources/conversations/items.py">list</a>(conversation_id, \*\*<a href="src/llama_stack_client/types/conversations/item_list_params.py">params</a>) -> <a href="./src/llama_stack_client/types/conversations/item_list_response.py">ItemListResponse</a></code>
- <code title="get /v1/conversations/{conversation_id}/items/{item_id}">client.conversations.items.<a href="./src/llama_stack_client/resources/conversations/items.py">get</a>(item_id, \*, conversation_id) -> <a href="./src/llama_stack_client/types/conversations/item_get_response.py">ItemGetResponse</a></code>

# Datasets

Types:
Expand Down Expand Up @@ -299,12 +332,6 @@ Methods:

## OpenAI

Types:

```python
from llama_stack_client.types.models import OpenAIListResponse
```

Methods:

- <code title="get /v1/models">client.models.openai.<a href="./src/llama_stack_client/resources/models/openai.py">list</a>() -> <a href="./src/llama_stack_client/types/model_list_response.py">ModelListResponse</a></code>
Expand Down Expand Up @@ -521,7 +548,7 @@ from llama_stack_client.types.alpha.post_training import (

Methods:

- <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>() -> List[Data]</code>
- <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>
- <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>
- <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>
- <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>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "llama_stack_client"
version = "0.3.0-alpha.4"
version = "0.3.0-alpha.5"
description = "The official Python library for the llama-stack-client API"
dynamic = ["readme"]
license = "MIT"
Expand Down
38 changes: 38 additions & 0 deletions src/llama_stack_client/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
completions,
moderations,
tool_runtime,
conversations,
vector_stores,
scoring_functions,
synthetic_data_generation,
Expand Down Expand Up @@ -86,6 +87,7 @@
AsyncSyntheticDataGenerationResource,
)
from .resources.tool_runtime.tool_runtime import ToolRuntimeResource, AsyncToolRuntimeResource
from .resources.conversations.conversations import ConversationsResource, AsyncConversationsResource
from .resources.vector_stores.vector_stores import VectorStoresResource, AsyncVectorStoresResource

__all__ = [
Expand Down Expand Up @@ -181,6 +183,12 @@ def responses(self) -> ResponsesResource:

return ResponsesResource(self)

@cached_property
def conversations(self) -> ConversationsResource:
from .resources.conversations import ConversationsResource

return ConversationsResource(self)

@cached_property
def datasets(self) -> DatasetsResource:
from .resources.datasets import DatasetsResource
Expand Down Expand Up @@ -503,6 +511,12 @@ def responses(self) -> AsyncResponsesResource:

return AsyncResponsesResource(self)

@cached_property
def conversations(self) -> AsyncConversationsResource:
from .resources.conversations import AsyncConversationsResource

return AsyncConversationsResource(self)

@cached_property
def datasets(self) -> AsyncDatasetsResource:
from .resources.datasets import AsyncDatasetsResource
Expand Down Expand Up @@ -774,6 +788,12 @@ def responses(self) -> responses.ResponsesResourceWithRawResponse:

return ResponsesResourceWithRawResponse(self._client.responses)

@cached_property
def conversations(self) -> conversations.ConversationsResourceWithRawResponse:
from .resources.conversations import ConversationsResourceWithRawResponse

return ConversationsResourceWithRawResponse(self._client.conversations)

@cached_property
def datasets(self) -> datasets.DatasetsResourceWithRawResponse:
from .resources.datasets import DatasetsResourceWithRawResponse
Expand Down Expand Up @@ -931,6 +951,12 @@ def responses(self) -> responses.AsyncResponsesResourceWithRawResponse:

return AsyncResponsesResourceWithRawResponse(self._client.responses)

@cached_property
def conversations(self) -> conversations.AsyncConversationsResourceWithRawResponse:
from .resources.conversations import AsyncConversationsResourceWithRawResponse

return AsyncConversationsResourceWithRawResponse(self._client.conversations)

@cached_property
def datasets(self) -> datasets.AsyncDatasetsResourceWithRawResponse:
from .resources.datasets import AsyncDatasetsResourceWithRawResponse
Expand Down Expand Up @@ -1090,6 +1116,12 @@ def responses(self) -> responses.ResponsesResourceWithStreamingResponse:

return ResponsesResourceWithStreamingResponse(self._client.responses)

@cached_property
def conversations(self) -> conversations.ConversationsResourceWithStreamingResponse:
from .resources.conversations import ConversationsResourceWithStreamingResponse

return ConversationsResourceWithStreamingResponse(self._client.conversations)

@cached_property
def datasets(self) -> datasets.DatasetsResourceWithStreamingResponse:
from .resources.datasets import DatasetsResourceWithStreamingResponse
Expand Down Expand Up @@ -1249,6 +1281,12 @@ def responses(self) -> responses.AsyncResponsesResourceWithStreamingResponse:

return AsyncResponsesResourceWithStreamingResponse(self._client.responses)

@cached_property
def conversations(self) -> conversations.AsyncConversationsResourceWithStreamingResponse:
from .resources.conversations import AsyncConversationsResourceWithStreamingResponse

return AsyncConversationsResourceWithStreamingResponse(self._client.conversations)

@cached_property
def datasets(self) -> datasets.AsyncDatasetsResourceWithStreamingResponse:
from .resources.datasets import AsyncDatasetsResourceWithStreamingResponse
Expand Down
14 changes: 14 additions & 0 deletions src/llama_stack_client/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@
ToolRuntimeResourceWithStreamingResponse,
AsyncToolRuntimeResourceWithStreamingResponse,
)
from .conversations import (
ConversationsResource,
AsyncConversationsResource,
ConversationsResourceWithRawResponse,
AsyncConversationsResourceWithRawResponse,
ConversationsResourceWithStreamingResponse,
AsyncConversationsResourceWithStreamingResponse,
)
from .vector_stores import (
VectorStoresResource,
AsyncVectorStoresResource,
Expand Down Expand Up @@ -226,6 +234,12 @@
"AsyncResponsesResourceWithRawResponse",
"ResponsesResourceWithStreamingResponse",
"AsyncResponsesResourceWithStreamingResponse",
"ConversationsResource",
"AsyncConversationsResource",
"ConversationsResourceWithRawResponse",
"AsyncConversationsResourceWithRawResponse",
"ConversationsResourceWithStreamingResponse",
"AsyncConversationsResourceWithStreamingResponse",
"DatasetsResource",
"AsyncDatasetsResource",
"DatasetsResourceWithRawResponse",
Expand Down
16 changes: 8 additions & 8 deletions src/llama_stack_client/resources/alpha/post_training/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import List, Type, cast
from typing import Type, cast

import httpx

Expand All @@ -19,7 +19,7 @@
from ...._wrappers import DataWrapper
from ...._base_client import make_request_options
from ....types.alpha.post_training import job_cancel_params, job_status_params, job_artifacts_params
from ....types.alpha.list_post_training_jobs_response import Data
from ....types.alpha.post_training.job_list_response import JobListResponse
from ....types.alpha.post_training.job_status_response import JobStatusResponse
from ....types.alpha.post_training.job_artifacts_response import JobArtifactsResponse

Expand Down Expand Up @@ -55,7 +55,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> List[Data]:
) -> JobListResponse:
"""Get all training jobs."""
return self._get(
"/v1alpha/post-training/jobs",
Expand All @@ -64,9 +64,9 @@ def list(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
post_parser=DataWrapper[List[Data]]._unwrapper,
post_parser=DataWrapper[JobListResponse]._unwrapper,
),
cast_to=cast(Type[List[Data]], DataWrapper[Data]),
cast_to=cast(Type[JobListResponse], DataWrapper[JobListResponse]),
)

def artifacts(
Expand Down Expand Up @@ -208,7 +208,7 @@ async def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> List[Data]:
) -> JobListResponse:
"""Get all training jobs."""
return await self._get(
"/v1alpha/post-training/jobs",
Expand All @@ -217,9 +217,9 @@ async def list(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
post_parser=DataWrapper[List[Data]]._unwrapper,
post_parser=DataWrapper[JobListResponse]._unwrapper,
),
cast_to=cast(Type[List[Data]], DataWrapper[Data]),
cast_to=cast(Type[JobListResponse], DataWrapper[JobListResponse]),
)

async def artifacts(
Expand Down
Loading
Loading