Replies: 1 comment 5 replies
-
@uwilken the ChatOptions chatOptions = chatClientRequest.prompt().getOptions();
if (chatOptions instanceof ToolCallingChatOptions toolCallingChatOptions) {
Map<String, Object> toolContext = toolCallingChatOptions.getToolContext();
} I hope that helps! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am working on a project where we share data between Tools and RequestAdvisors.
Tools add data to the tool context and an Advisor uses this data to add additional annotations to the final answer.
With #2993 the class AdvisedRequest has been removed. Instead, ChatClientRequests are used now in Advisors.
In ChatClientRequest it is possible to access the context that is available to all other Advisors, but there is no way to access the tool context (formerly AdvisedRequest#toolContext).
@markpollack, @ThomasVitale, Is there a way to access the tool context in an Advisor?
Your feedback is much appreciated!
Ulrich
Beta Was this translation helpful? Give feedback.
All reactions