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