Is it possible to access the tool call within a tool? #263
Unanswered
joshforbes
asked this question in
Q&A
Replies: 1 comment
-
Pretty sure that the last message in the chat will always be the tool call you are on, as the library is currently written. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I see pretty clearly that a RubyLLM::Tool is only receiving the args when it is called:
Has anyone had any need, or found a way, to make the tool call itself available within a tool's execute method? My goal is to create some additional records that I would associate with that tool call or message.
I know I can pass the chat in to the tool initializer. I suppose I could get the most recent tool call from the chat, but I'm not sure if the most recent tool call is guaranteed to be the one that is currently running.
Beta Was this translation helpful? Give feedback.
All reactions