Update multi_agent.py
Browse files- multi_agent.py +5 -4
multi_agent.py
CHANGED
@@ -97,10 +97,11 @@ def create_graph(llm, topic):
|
|
97 |
|
98 |
researcher_agent = create_agent(llm, [tavily_tool, today_tool], system_prompt=
|
99 |
"1. Research content on topic: " + topic + ". "
|
100 |
-
"2. Based on your research, write
|
101 |
-
"3. The output must be in markdown format (omit the triple backticks). "
|
102 |
-
"4. At the beginning of the article, add current date and author: Multi-Agent AI System. "
|
103 |
-
"5.
|
|
|
104 |
researcher_node = functools.partial(agent_node, agent=researcher_agent, name="Researcher")
|
105 |
|
106 |
workflow = StateGraph(AgentState)
|
|
|
97 |
|
98 |
researcher_agent = create_agent(llm, [tavily_tool, today_tool], system_prompt=
|
99 |
"1. Research content on topic: " + topic + ". "
|
100 |
+
"2. Based on your research, write a long and in-depth article on the topic. "
|
101 |
+
"3. The output must be in markdown format (omit the triple backticks), including lists. "
|
102 |
+
"4. At the beginning of the article below the title, add current date and author: Multi-Agent AI System. "
|
103 |
+
"5. At the end of the article, add a references section with distinct links to relevant content. "
|
104 |
+
"6. Include inline references to the links, for example: [1].")
|
105 |
researcher_node = functools.partial(agent_node, agent=researcher_agent, name="Researcher")
|
106 |
|
107 |
workflow = StateGraph(AgentState)
|