New Features:
-
Added modern tool-calling support to
ChatSession- Supports
tools,tool_choice, andparallel_tool_calls - Tool results can be sent back with
role = "tool"andtool_call_id
- Supports
-
Added per-request parameter overrides for session methods
chat:send(...)andchat:generate_response(...)now accept request-specific overridesResponsesChatSession:send(...)now supports the same pattern
-
Added new tool-calling examples
- New chat completions example in
examples/chat_completions/tools.lua - Updated Responses example to show a full tool-call round trip
- New chat completions example in
Improvements:
-
Improved
ResponsesChatSessionparity withChatSession- Better support for tool-call round trips using
function_call_output - Session usage and examples now align more closely across both APIs
- Better support for tool-call round trips using
-
Improved streaming tool-call handling
- Streaming tool-call deltas are aggregated into complete assistant messages
-
Expanded documentation and test coverage
- README now documents tool calling and per-request overrides
- Added tests for tool calls, streaming aggregation, and session overrides