Spaces:
Running
Running
Download agentgraph/methods/experimental/langgraph_extractor.py from holistic-ai/AgentGraph: direct link, hf CLI and curl.
- Browser
- Download file 181 Bytes
-
https://huggingface.co/spaces/holistic-ai/AgentGraph/resolve/main/agentgraph/methods/experimental/langgraph_extractor.py
- Command line
-
hf download hf://spaces/holistic-ai/AgentGraph/agentgraph/methods/experimental/langgraph_extractor.py
-
curl -L -o langgraph_extractor.py https://huggingface.co/spaces/holistic-ai/AgentGraph/resolve/main/agentgraph/methods/experimental/langgraph_extractor.py
181 Bytes
| from langgraph.prebuilt import create_react_agent | |
| agent = create_react_agent(...) | |
| response = agent.invoke({"messages": [{"role": "user", "content": "what is the weather in sf"}]}) |