toMessagePart
Converts the current ReceivedToolResult instance into a MessagePart.Tool.Result object.
Return
A MessagePart.Tool.Result instance representing the tool result with the current data and metadata.
Converts the current ReceivedToolResult instance into a MessagePart.Tool.Result object.
A MessagePart.Tool.Result instance representing the tool result with the current data and metadata.