Skip to content

Commit

Permalink
revert change to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jul 6, 2024
1 parent 3cd8456 commit 85ffe8f
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions agixt/Websearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,7 @@ async def get_web_content(
if not str(pick_a_link).lower().startswith("none"):
logging.info(f"AI has decided to click: {pick_a_link}")
task = asyncio.create_task(
Websearch(
collection_number=self.collection_number,
agent=self.agent,
user=self.user,
ApiClient=self.ApiClient,
).recursive_browsing(
self.recursive_browsing(
user_input=user_input,
links=pick_a_link,
conversation_name=conversation_name,
Expand Down Expand Up @@ -358,12 +353,7 @@ async def recursive_browsing(
message=f"[SUBACTIVITY][{activity_id}] Browsing [{url}]({url}).",
)
task = asyncio.create_task(
Websearch(
collection_number=self.collection_number,
agent=self.agent,
user=self.user,
ApiClient=self.ApiClient,
).get_web_content(
self.get_web_content(
url=url,
conversation_id=conversation_id,
agent_browsing=agent_browsing,
Expand Down Expand Up @@ -409,12 +399,9 @@ async def scrape_websites(
message=f"[SUBACTIVITY][{activity_id}] Browsing [{link}]({link}).",
)
task = asyncio.create_task(
Websearch(
collection_number=self.collection_number,
agent=self.agent,
user=self.user,
ApiClient=self.ApiClient,
).get_web_content(url=link, summarize_content=summarize_content)
self.get_web_content(
url=link, summarize_content=summarize_content
)
)
tasks.append(task)
scraped_links.append(link)
Expand Down Expand Up @@ -611,12 +598,7 @@ async def websearch_agent(
links = links[:websearch_depth]
if links is not None and len(links) > 0:
task = asyncio.create_task(
Websearch(
collection_number=self.collection_number,
agent=self.agent,
user=self.user,
ApiClient=self.ApiClient,
).recursive_browsing(
self.recursive_browsing(
user_input=user_input,
links=links,
conversation_name=conversation_name,
Expand Down

0 comments on commit 85ffe8f

Please sign in to comment.