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
I searched existing ideas and did not find a similar one
I added a very descriptive title
I've clearly described the feature request and motivation for it
Feature request
When writing a tool that can be used inside LCEL / LangGraph and outside, we can use InjectedState to deliver it through LangGraph state only when inside LangGraph. An analogous use case that I'm missing is something like InjectedConfig("key") to deliver a RunnableConfig of {"configurable": {"key": ...}} to a tool in a strongly typed way.
Motivation
I would like to write strongly typed tool that can be invoked as ordinary functions, or used to generate bindings for service calls, but which also can be used simply from inside a LangGraph graph.
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.
-
Checked
Feature request
When writing a tool that can be used inside LCEL / LangGraph and outside, we can use InjectedState to deliver it through LangGraph state only when inside LangGraph. An analogous use case that I'm missing is something like InjectedConfig("key") to deliver a RunnableConfig of
{"configurable": {"key": ...}}
to a tool in a strongly typed way.Motivation
I would like to write strongly typed tool that can be invoked as ordinary functions, or used to generate bindings for service calls, but which also can be used simply from inside a LangGraph graph.
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions