We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3842c2c commit cde7582Copy full SHA for cde7582
util/opentelemetry-util-genai/src/opentelemetry/util/genai/types.py
@@ -19,15 +19,15 @@
19
20
@dataclass()
21
class ToolCall:
22
- type: Literal["tool_call"]
+ type: Literal["tool_call"] = "tool_call"
23
arguments: Any
24
name: str
25
id: Optional[str]
26
27
28
29
class ToolCallResponse:
30
- type: Literal["tool_call_response"]
+ type: Literal["tool_call_response"] = "tool_call_response"
31
response: Any
32
33
@@ -39,7 +39,7 @@ class ToolCallResponse:
39
40
41
class Text:
42
- type: Literal["text"]
+ type: Literal["text"] = "text"
43
content: str
44
45
0 commit comments