kyra-nank commited on
Commit
0cc75d5
·
verified ·
1 Parent(s): 12705b6

Upload folder using huggingface_hub

Browse files
email_agent.py CHANGED
@@ -3,7 +3,7 @@ from typing import Dict
3
 
4
  import sendgrid
5
  from sendgrid.helpers.mail import Email, Mail, Content, To
6
- from openai.agents import Agent, function_tool
7
 
8
  @function_tool
9
  def send_email(subject: str, html_body: str) -> Dict[str, str]:
 
3
 
4
  import sendgrid
5
  from sendgrid.helpers.mail import Email, Mail, Content, To
6
+ from agents import Agent, function_tool
7
 
8
  @function_tool
9
  def send_email(subject: str, html_body: str) -> Dict[str, str]:
planner_agent.py CHANGED
@@ -1,5 +1,5 @@
1
  from pydantic import BaseModel, Field
2
- from openai.agents import Agent
3
 
4
  HOW_MANY_SEARCHES = 5
5
 
 
1
  from pydantic import BaseModel, Field
2
+ from agents import Agent
3
 
4
  HOW_MANY_SEARCHES = 5
5
 
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
- openai>=1.3.0
2
  gradio
 
1
+ openai-agents
2
  gradio
research_manager.py CHANGED
@@ -1,4 +1,4 @@
1
- from openai.agents import Runner, trace, gen_trace_id
2
  from search_agent import search_agent
3
  from planner_agent import planner_agent, WebSearchItem, WebSearchPlan
4
  from writer_agent import writer_agent, ReportData
 
1
+ from agents import Runner, trace, gen_trace_id
2
  from search_agent import search_agent
3
  from planner_agent import planner_agent, WebSearchItem, WebSearchPlan
4
  from writer_agent import writer_agent, ReportData
search_agent.py CHANGED
@@ -1,4 +1,4 @@
1
- from openai.agents import Agent, WebSearchTool, ModelSettings
2
 
3
  INSTRUCTIONS = (
4
  "You are a research assistant. Given a search term, you search the web for that term and "
 
1
+ from agents import Agent, WebSearchTool, ModelSettings
2
 
3
  INSTRUCTIONS = (
4
  "You are a research assistant. Given a search term, you search the web for that term and "
writer_agent.py CHANGED
@@ -1,5 +1,5 @@
1
  from pydantic import BaseModel, Field
2
- from openai.agents import Agent
3
 
4
  INSTRUCTIONS = (
5
  "You are a senior researcher tasked with writing a cohesive report for a research query. "
 
1
  from pydantic import BaseModel, Field
2
+ from agents import Agent
3
 
4
  INSTRUCTIONS = (
5
  "You are a senior researcher tasked with writing a cohesive report for a research query. "