Skip to content

Instantly share code, notes, and snippets.

@CodeWithOz
Last active August 26, 2025 22:34
Show Gist options
  • Select an option

  • Save CodeWithOz/0b01d558adac703673aceca48471dca7 to your computer and use it in GitHub Desktop.

Select an option

Save CodeWithOz/0b01d558adac703673aceca48471dca7 to your computer and use it in GitHub Desktop.
Agent for cleaning up named entities in YouTube video transcripts.
...
from langgraph.graph import StateGraph, START, END
...
class DemoEnrichmentAgent:
...
def __init__(self):
...
# build the graph
graph_builder = StateGraph(AgentState)
graph_builder.add_node("extractor", self.extractor_node)
graph_builder.add_edge(START, "extractor")
graph_builder.add_edge("extractor", END)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment