You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a feature or a way to get anything from tool directly to the calling service without the chatclient intercepting it?
For ex: i want to add something to toolcontext and return it.
class DateTimeTools {
@Tool(description = "Get the current date and time in the user's timezone")
String getCurrentDateTime() {
Toolcontext.addItem ("Add something here")
return LocalDateTime.now().atZone(LocaleContextHolder.getTimeZone().toZoneId()).toString();
}
so that the chatclient.getitem can retrieve the information. Used toolcontext as an example even though i know it has to be started by the chatclient first and cannot be modified.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a feature or a way to get anything from tool directly to the calling service without the chatclient intercepting it?
For ex: i want to add something to toolcontext and return it.
so that the chatclient.getitem can retrieve the information. Used toolcontext as an example even though i know it has to be started by the chatclient first and cannot be modified.
Beta Was this translation helpful? Give feedback.
All reactions