phidatahq / phidata

Build AI Assistants with memory, knowledge and tools.
https://docs.phidata.com
Mozilla Public License 2.0
10.53k stars 1.52k forks source link

Feature Request: Context-aware tool calls #1037

Open z404 opened 6 days ago

z404 commented 6 days ago

Is it feasible to optionally create context-aware tool calls, such that metadata is passed to any tool call that is done by the llm wherein the executing conversation thread passes the conversation ID, and/or the tool call ID (and/or any other information available to the assistant object that one feels would be useful for the tool to have as context) to the tool's function call?

Happy to further explain the usecase that this would help with, if required.

suraj-ranganath commented 4 days ago

I think this would be super useful. Being able to pass the tool call id to the tool called will allow tracking tool calls from the tool call function itself and handling their responses as required.