Tool Calling - access to ToolResponseMessage #2913
Unanswered
dolukhanov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using tools with
ChatModel
andinternalToolExecutionEnabled
set totrue
, the tool calls are made internally, and the results are passed directly to the AI model.In many cases, it would be helpful to have access to the results of those tool calls for subsequent interactions. For example, if a tool returns a list of entities with both an ID and a name/label, the Assistant Message typically only exposes the name/label. If a later interaction requires the ID, it is no longer available.
Disabling
internalToolExecutionEnabled
and manually managing tool calls viaToolCallingManager
solves this problem, since you can accesstoolExecutionResult.conversationHistory()
, which includes allUser
,Assistant
, andTool
messages.However, is there a way to access the full conversation history — including
ToolResponseMessages
— without having to manually manage tool calls?I tried using
InMemoryChatMemory
andMessageChatMemoryAdvisor
, but they did not persistToolResponseMessages
.If this functionality is not currently available, I believe it would be a valuable addition to the framework.
⸻
Beta Was this translation helpful? Give feedback.
All reactions