Skip to content

Commit 764cdc9

Browse files
author
Eric Huang (AI Platform)
committed
Sync updates from stainless branch: ehhuang/dev
1 parent 3116310 commit 764cdc9

File tree

5 files changed

+15
-36
lines changed

5 files changed

+15
-36
lines changed

src/llama_stack_client/types/chat_completion_response_stream_chunk.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Dict, List, Union, Optional
4-
from datetime import datetime
3+
from typing import List, Optional
54
from typing_extensions import Literal
65

76
from .._models import BaseModel
@@ -31,19 +30,9 @@ class Event(BaseModel):
3130
class Metric(BaseModel):
3231
metric: str
3332

34-
span_id: str
35-
36-
timestamp: datetime
37-
38-
trace_id: str
39-
40-
type: Literal["metric"]
41-
42-
unit: str
43-
4433
value: float
4534

46-
attributes: Optional[Dict[str, Union[str, float, bool, None]]] = None
35+
unit: Optional[str] = None
4736

4837

4938
class ChatCompletionResponseStreamChunk(BaseModel):

src/llama_stack_client/types/completion_response.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
from .._models import BaseModel
77
from .token_log_probs import TokenLogProbs
88

9-
__all__ = ["CompletionResponse"]
9+
__all__ = ["CompletionResponse", "Metric"]
10+
11+
12+
class Metric(BaseModel):
13+
metric: str
14+
15+
value: float
16+
17+
unit: Optional[str] = None
1018

1119

1220
class CompletionResponse(BaseModel):
@@ -18,3 +26,5 @@ class CompletionResponse(BaseModel):
1826

1927
logprobs: Optional[List[TokenLogProbs]] = None
2028
"""Optional log probabilities for generated tokens"""
29+
30+
metrics: Optional[List[Metric]] = None

src/llama_stack_client/types/shared/chat_completion_response.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Dict, List, Union, Optional
4-
from datetime import datetime
5-
from typing_extensions import Literal
3+
from typing import List, Optional
64

75
from ..._models import BaseModel
86
from ..token_log_probs import TokenLogProbs
@@ -14,19 +12,9 @@
1412
class Metric(BaseModel):
1513
metric: str
1614

17-
span_id: str
18-
19-
timestamp: datetime
20-
21-
trace_id: str
22-
23-
type: Literal["metric"]
24-
25-
unit: str
26-
2715
value: float
2816

29-
attributes: Optional[Dict[str, Union[str, float, bool, None]]] = None
17+
unit: Optional[str] = None
3018

3119

3220
class ChatCompletionResponse(BaseModel):

src/llama_stack_client/types/shared/tool_response_message.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Union
43
from typing_extensions import Literal
54

65
from ..._models import BaseModel
@@ -18,6 +17,3 @@ class ToolResponseMessage(BaseModel):
1817

1918
role: Literal["tool"]
2019
"""Must be "tool" to identify this as a tool response"""
21-
22-
tool_name: Union[Literal["brave_search", "wolfram_alpha", "photogen", "code_interpreter"], str]
23-
"""Name of the tool that was called"""

src/llama_stack_client/types/shared_params/tool_response_message.py

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

33
from __future__ import annotations
44

5-
from typing import Union
65
from typing_extensions import Literal, Required, TypedDict
76

87
from .interleaved_content import InterleavedContent
@@ -19,6 +18,3 @@ class ToolResponseMessage(TypedDict, total=False):
1918

2019
role: Required[Literal["tool"]]
2120
"""Must be "tool" to identify this as a tool response"""
22-
23-
tool_name: Required[Union[Literal["brave_search", "wolfram_alpha", "photogen", "code_interpreter"], str]]
24-
"""Name of the tool that was called"""

0 commit comments

Comments
 (0)