Update rag_langgraph.py
Browse files- rag_langgraph.py +1 -1
rag_langgraph.py
CHANGED
@@ -95,7 +95,7 @@ def create_graph(topic, word_count):
|
|
95 |
research_agent = create_agent(llm, [tavily_tool], f"Research content on topic {topic}, prioritizing research papers.")
|
96 |
research_node = functools.partial(agent_node, agent=research_agent, name="Researcher")
|
97 |
|
98 |
-
blogger_agent = create_agent(llm, system_prompt=f"Write a {word_count}-word blog post on topic {topic}. Add a references section with research papers.")
|
99 |
blogger_node = functools.partial(agent_node, agent=blogger_agent, name="Blogger")
|
100 |
|
101 |
workflow = StateGraph(AgentState)
|
|
|
95 |
research_agent = create_agent(llm, [tavily_tool], f"Research content on topic {topic}, prioritizing research papers.")
|
96 |
research_node = functools.partial(agent_node, agent=research_agent, name="Researcher")
|
97 |
|
98 |
+
blogger_agent = create_agent(llm, [], system_prompt=f"Write a {word_count}-word blog post on topic {topic}. Add a references section with research papers.")
|
99 |
blogger_node = functools.partial(agent_node, agent=blogger_agent, name="Blogger")
|
100 |
|
101 |
workflow = StateGraph(AgentState)
|