SwatGarg commited on
Commit
15551d7
·
verified ·
1 Parent(s): 84c31ed

Update agents.py

Browse files
Files changed (1) hide show
  1. agents.py +5 -4
agents.py CHANGED
@@ -12,7 +12,8 @@ repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
12
  mistral = HuggingFaceEndpoint(repo_id=repo_id, huggingfacehub_api_token=secret_token, max_new_tokens=28000, temperature=0.3, repetition_penalty=1.1)
13
 
14
  from langchain_groq import ChatGroq
15
-
 
16
 
17
  class ContentAgents:
18
  def __init__(self):
@@ -41,7 +42,7 @@ class ContentAgents:
41
  7. Images to support the content
42
  """,
43
  llm=self.llm,
44
- tools=[WebSearchTools.search_internet,WebSearchTools.scrape_and_summarize_website],
45
  allow_delegation=False,
46
  verbose=True)
47
 
@@ -53,7 +54,7 @@ class ContentAgents:
53
  the Planner, you do web searches on the topic {topic} in order to find compelling images as well as provide precise and up-to-date
54
  domain knowledge. Your work is the basis for the Content Writer to write an article on this topic.""",
55
  llm=self.llm,
56
- tools=[WebSearchTools.search_internet,WebSearchTools.scrape_and_summarize_website],
57
  allow_delegation=False,
58
  verbose=True)
59
 
@@ -79,6 +80,6 @@ class ContentAgents:
79
  are opinions as opposed to objective statements. You avoid plagiarism, you provide references for your citations, and mention
80
  attribution to the images/information coming from others.""",
81
  llm=self.llm,
82
- tools=[WebSearchTools.search_internet,WebSearchTools.scrape_and_summarize_website],
83
  allow_delegation=False,
84
  verbose=True)
 
12
  mistral = HuggingFaceEndpoint(repo_id=repo_id, huggingfacehub_api_token=secret_token, max_new_tokens=28000, temperature=0.3, repetition_penalty=1.1)
13
 
14
  from langchain_groq import ChatGroq
15
+ # Initialize the Tools
16
+ web_search_tools = WebSearchTools()
17
 
18
  class ContentAgents:
19
  def __init__(self):
 
42
  7. Images to support the content
43
  """,
44
  llm=self.llm,
45
+ tools=[web_search_tools.search_internet,web_search_tools.scrape_and_summarize_website],
46
  allow_delegation=False,
47
  verbose=True)
48
 
 
54
  the Planner, you do web searches on the topic {topic} in order to find compelling images as well as provide precise and up-to-date
55
  domain knowledge. Your work is the basis for the Content Writer to write an article on this topic.""",
56
  llm=self.llm,
57
+ tools=[web_search_tools.search_internet,web_search_tools.scrape_and_summarize_website],
58
  allow_delegation=False,
59
  verbose=True)
60
 
 
80
  are opinions as opposed to objective statements. You avoid plagiarism, you provide references for your citations, and mention
81
  attribution to the images/information coming from others.""",
82
  llm=self.llm,
83
+ tools=[web_search_tools.search_internet,web_search_tools.scrape_and_summarize_website],
84
  allow_delegation=False,
85
  verbose=True)