Skip to content

Commit 691eeec

Browse files
committed
Fix order of args..
1 parent 9645a46 commit 691eeec

File tree

1 file changed

+3
-3
lines changed
  • util/opentelemetry-util-genai/src/opentelemetry/util/genai

1 file changed

+3
-3
lines changed

util/opentelemetry-util-genai/src/opentelemetry/util/genai/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ class ContentCapturingMode(Enum):
3131

3232
@dataclass()
3333
class ToolCall:
34-
type: Literal["tool_call"] = "tool_call"
3534
arguments: Any
3635
name: str
3736
id: Optional[str]
37+
type: Literal["tool_call"] = "tool_call"
3838

3939

4040
@dataclass()
4141
class ToolCallResponse:
42-
type: Literal["tool_call_response"] = "tool_call_response"
4342
response: Any
4443
id: Optional[str]
44+
type: Literal["tool_call_response"] = "tool_call_response"
4545

4646

4747
FinishReason = Literal[
@@ -51,8 +51,8 @@ class ToolCallResponse:
5151

5252
@dataclass()
5353
class Text:
54-
type: Literal["text"] = "text"
5554
content: str
55+
type: Literal["text"] = "text"
5656

5757

5858
MessagePart = Union[Text, ToolCall, ToolCallResponse, Any]

0 commit comments

Comments
 (0)