Can we still use JSON Toolkit in LangGraph? #1846
Answered
by
eyurtsev
sherryxiao1988
asked this question in
Q&A
-
Here is the documentation for JSON Toolkit: It seems after migrating to LangGraph, we should convert the toolkit to something interacts with the state graph as well? Can we just use the toolkit as it is in a supervision multi-agent architecture? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
eyurtsev
Sep 25, 2024
Replies: 1 comment 1 reply
-
Have you tried using a pre-built agent with the json tools? from langgraph.prebuilt import create_react_agent
...
son_spec = JsonSpec(dict_=data, max_value_length=4000)
json_toolkit = JsonToolkit(spec=json_spec)
...
graph = create_react_agent(model, tools=json_toolkit.get_tools()) https://langchain-ai.github.io/langgraph/how-tos/create-react-agent/#setup |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sherryxiao1988
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you tried using a pre-built agent with the json tools?
https://langchain-ai.github.io/langgraph/how-tos/create-react-agent/#setup
https://python.langchain.com/docs/integrations/tools/json/