24Arys11's picture
Trying something new - an agent builder...
bea2d8c
raw
history blame contribute delete
615 Bytes
from typing import Dict, Any
from langgraph.graph import StateGraph, END, START
from langgraph.graph.state import CompiledStateGraph
class GraphBuilder:
def __init__(self):
"""
Initializes the GraphBuilder.
"""
self.nodes = Nodes()
self.edges = Edges()
# TODO: Implement the desired constructor.
pass
def build_agent_graph(self) -> CompiledStateGraph:
"""Build and return the agent graph."""
graph = StateGraph(State)
>>>>>NODES<<<<<
>>>>>EDGES<<<<<
return graph.compile()