bstraehle commited on
Commit
71efb77
·
verified ·
1 Parent(s): ee3145e

Update multi_agent.py

Browse files
Files changed (1) hide show
  1. 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 an in-depth article on the topic. "
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. Also at the beginning of the article, add a references section with links to relevant content.")
 
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)