Commits
Click on a commit to change the comparison rangeFix get_buffer_string to support modern tool_calls
Fixes #33970
The get_buffer_string() function was still using the deprecated
function_call field from additional_kwargs. Modern AI providers
(OpenAI, Anthropic, Gemini, etc.) now use the tool_calls attribute
instead, causing tool call information to not be output.
Changes:
- Updated get_buffer_string() to prioritize tool_calls over function_call
- Maintained backward compatibility with legacy function_call format
- Added tests for tool_calls and priority behavior
The fix ensures tool call information is correctly included in
buffer strings while maintaining compatibility with older code.3 days ago
by yashwantbezawada