Skip to content

Commit cde7582

Browse files
committed
ADd defaults
1 parent 3842c2c commit cde7582

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
@@ -19,15 +19,15 @@
1919

2020
@dataclass()
2121
class ToolCall:
22-
type: Literal["tool_call"]
22+
type: Literal["tool_call"] = "tool_call"
2323
arguments: Any
2424
name: str
2525
id: Optional[str]
2626

2727

2828
@dataclass()
2929
class ToolCallResponse:
30-
type: Literal["tool_call_response"]
30+
type: Literal["tool_call_response"] = "tool_call_response"
3131
response: Any
3232
id: Optional[str]
3333

@@ -39,7 +39,7 @@ class ToolCallResponse:
3939

4040
@dataclass()
4141
class Text:
42-
type: Literal["text"]
42+
type: Literal["text"] = "text"
4343
content: str
4444

4545

0 commit comments

Comments
 (0)