mirror of
https://github.com/vxcontrol/langchaingo.git
synced 2026-07-21 00:45:22 -04:00
712d720afd
- Introduced reasoning content handling in MessageContent and ToolCall structures, allowing for the preservation of reasoning details during JSON marshaling and unmarshaling. - Enhanced tests to validate the serialization and deserialization of message content with reasoning, covering various scenarios including text and tool call types. - Updated marshaling logic to conditionally include reasoning data based on its presence, ensuring accurate representation in JSON format. - Added new reasoning-related tests to ensure comprehensive coverage of the new functionality.