- Add TOOL_CONVERSATION_KEY constant to store conversation history
- Extend ToolContext with getToolConversationHistory method
- Include conversation history in tool context during function execution
- Add test coverage for tool conversation history verification
Resolves #1202
Decisions to make:
- [ ] Should we have a dedicated
FunctionCallingOptionproperty to control the addition of the current tool conversation history to the TooContext. Or assume that any ToolContext will provide this information? - [ ] Should we have a dedicated
ToolContext#getToolConversationHistoryor use the raw map with predefined keyTOOL_CONVERSATION_KEY.
Comment From: ilayaperumalg
LGTM, merging.
Comment From: ilayaperumalg
Squashed, rebased, updated the javadoc, verified the changes and merged as 0eacc919