Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.

Commit 2d3f64e

Browse files
feat(api): update via SDK Studio
1 parent 3b74b07 commit 2d3f64e

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
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: 106
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-c371abef4463f174f8d35ef3da4697fae5eb221db615f9c305319196472f313b.yml
33
openapi_spec_hash: d9bb62faf229c2c2875c732715e9cfd1
4-
config_hash: 82fe79ebe3e65787cd877faf812ee79e
4+
config_hash: d14b33fa5d0afc0d93f32ba019bac9df

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ from llama_stack_client.types import (
2222
ScoringResult,
2323
SystemMessage,
2424
ToolCall,
25+
ToolCallOrString,
2526
ToolParamDefinition,
2627
ToolResponseMessage,
2728
UserMessage,

src/llama_stack_client/types/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
SamplingParams as SamplingParams,
2525
BatchCompletion as BatchCompletion,
2626
SafetyViolation as SafetyViolation,
27+
ToolCallOrString as ToolCallOrString,
2728
CompletionMessage as CompletionMessage,
2829
InterleavedContent as InterleavedContent,
2930
ToolParamDefinition as ToolParamDefinition,

src/llama_stack_client/types/shared/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from .safety_violation import SafetyViolation as SafetyViolation
1919
from .completion_message import CompletionMessage as CompletionMessage
2020
from .interleaved_content import InterleavedContent as InterleavedContent
21+
from .tool_call_or_string import ToolCallOrString as ToolCallOrString
2122
from .tool_param_definition import ToolParamDefinition as ToolParamDefinition
2223
from .tool_response_message import ToolResponseMessage as ToolResponseMessage
2324
from .query_generator_config import QueryGeneratorConfig as QueryGeneratorConfig

src/llama_stack_client/types/shared/content_delta.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
from ..._utils import PropertyInfo
77
from ..._models import BaseModel
8-
from .tool_call import ToolCall
8+
from .tool_call_or_string import ToolCallOrString
99

10-
__all__ = ["ContentDelta", "TextDelta", "ImageDelta", "ToolCallDelta", "ToolCallDeltaToolCall"]
10+
__all__ = ["ContentDelta", "TextDelta", "ImageDelta", "ToolCallDelta"]
1111

1212

1313
class TextDelta(BaseModel):
@@ -26,14 +26,11 @@ class ImageDelta(BaseModel):
2626
"""Discriminator type of the delta. Always "image" """
2727

2828

29-
ToolCallDeltaToolCall: TypeAlias = Union[str, ToolCall]
30-
31-
3229
class ToolCallDelta(BaseModel):
3330
parse_status: Literal["started", "in_progress", "failed", "succeeded"]
3431
"""Current parsing status of the tool call"""
3532

36-
tool_call: ToolCallDeltaToolCall
33+
tool_call: ToolCallOrString
3734
"""Either an in-progress tool call string or the final parsed tool call"""
3835

3936
type: Literal["tool_call"]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import Union
4+
from typing_extensions import TypeAlias
5+
6+
from .tool_call import ToolCall
7+
8+
__all__ = ["ToolCallOrString"]
9+
10+
ToolCallOrString: TypeAlias = Union[str, ToolCall]

0 commit comments

Comments
 (0)