Spaces:
Runtime error
Runtime error
Download src/genai/context_analysis_agent/agent.py from subashdvorak/trygithubactions: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/main/src/genai/context_analysis_agent/agent.py
- Command line
-
hf download hf://spaces/subashdvorak/trygithubactions/src/genai/context_analysis_agent/agent.py
-
curl -L -o agent.py https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/main/src/genai/context_analysis_agent/agent.py
607 Bytes
| from langgraph.graph import StateGraph, START, END | |
| from langgraph.checkpoint.memory import MemorySaver | |
| from .utils.state import State | |
| from .utils.nodes import IntroductionNode | |
| class ContextAnalysisAgent: | |
| def __init__(self): | |
| self.memory = MemorySaver() | |
| def context_analysis_graph(self): | |
| graph_builder= StateGraph(State) | |
| graph_builder.add_node("details_collector", IntroductionNode().run) | |
| graph_builder.add_edge(START, "details_collector") | |
| graph_builder.add_edge("details_collector", END) | |
| return graph_builder.compile(checkpointer=self.memory) | |