Inject state and tool call data into tools
Problem to solve
LangGraph allows tools to inject state and tool call metadata into tools (see https://langchain-ai.github.io/langgraph/how-tos/tool-calling/#short-term-memory), but we're currently not taking advantage of this and instead are manually passing those values around.
Proposal
Migrate to using injected values
Further details
Note that at the moment InjectedToolCallId doesn't play nicely with custom tool input schemas. Follow https://github.com/langchain-ai/langgraph/issues/5072 for more details
Links / references
Internal slack thread with LangChain around the upstream issue
Edited by Mikołaj Wawrzyniak