Trying to run a super basic example, but whenever I add a tool (example, SerperDevTool), I got the dreadfull
Agent stopped due to iteration limit or time limit.
I've tried running againt ChatGPT but failed to get it working with the API key (most likely cause I tried to run it for free using GTP 3.5. Then I switch to LM Studio using Llama 3 v2
Sample code
import os
os.environ["SERPER_API_KEY"] = "xxxxx" - Hiding actual values
os.environ["BROWSERBASE_API_KEY"] = "xxxx"
os.environ["BROWSERBASE_PROJECT_ID"] = "xxxx"
os.environ["OPENAI_API_BASE"] = "http://localhost:1234/v1"
os.environ["OPENAI_API_KEY"] = "lm-studio"
from crewai import Crew, Process, Agent, Task
from crewai_tools import SerperDevTool, BrowserbaseLoadTool, EXASearchTool
search_tool = SerperDevTool()
browser_tool = BrowserbaseLoadTool()
exa_search_tool = EXASearchTool()
# Define your agents
researcher = Agent(
role='Product Marketing Manager',
goal='Bring insights and a hint of what the future entails for the rest of the company.',
backstory='An experienced product marketing manager, with a big passion for gaming',
verbose=True,
memory=True,
tools=[], # search_tool, browser_tool, exa_search_tool],
max_iter=1,
)
# Define the tasks in sequence
research_task = Task(
description='Conduct market and competitors research on the Playstation games market.',
expected_output="A document with the latest trends in the gaming space for Playstation owners, and a list of competitors that are doing well in the space. The document should also contain a list of opportunities that we can leverage to surpass our competitors.",
agent=researcher)
# Form the crew with a sequential process
report_crew = Crew(
agents=[researcher],
tasks=[research_task],
process=Process.sequential
)
result = report_crew.kickoff()
print(result)
When I look at my Serper dashboard, no credit is being consumed.
I'm pretty sure I'm doing something dumb, but have no idea what.
Trying to run a super basic example, but whenever I add a tool (example, SerperDevTool), I got the dreadfull
Agent stopped due to iteration limit or time limit.I've tried running againt ChatGPT but failed to get it working with the API key (most likely cause I tried to run it for free using GTP 3.5. Then I switch to LM Studio using Llama 3 v2
Sample code
When I look at my Serper dashboard, no credit is being consumed.
I'm pretty sure I'm doing something dumb, but have no idea what.