File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
util/opentelemetry-util-genai/src/opentelemetry/util/genai Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,17 +31,17 @@ class ContentCapturingMode(Enum):
3131
3232@dataclass ()
3333class 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 ()
4141class 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
4747FinishReason = Literal [
@@ -51,8 +51,8 @@ class ToolCallResponse:
5151
5252@dataclass ()
5353class Text :
54- type : Literal ["text" ] = "text"
5554 content : str
55+ type : Literal ["text" ] = "text"
5656
5757
5858MessagePart = Union [Text , ToolCall , ToolCallResponse , Any ]
You can’t perform that action at this time.
0 commit comments