Include Agent SERP task

This commit is contained in:
ajaysi
2024-05-07 13:00:44 +05:30
parent f3f6d5e29c
commit 6f88f9ba34

View File

@@ -40,6 +40,7 @@ def create_agents(search_keywords):
backstory = backstory,
memory = True, # Enable memory
verbose = True,
tools = [search_tool],
max_rpm = 10, # No limit on requests per minute
max_iter = 5, # Default value for maximum iterations
allow_delegation = False,
@@ -78,7 +79,8 @@ def create_tasks(agents, search_keywords):
task_description, expected_output = read_config("research_task")
print(task_description, expected_output)
research_task = Task(
description=f"""The main focus keywords are: "{search_keywords}".\n{task_description}""",
description=f"""The main focus keywords are: "{search_keywords}".\n{task_description}.
Set the input parameter as : search_query""",
expected_output = expected_output,
agent=agents[0] # Assign to the researcher agent
)