Describe the bug
When using a very basic Agent
to test functionality, after adding the stopping_condition
as a string to the Agent()
class construction, I see the error shown in the issue title.
To Reproduce
This is the Agent
code:
dumb_agent = Agent(agent_name='dumb-tester',
agent_description=('does dumb things'),
llm=get_groq_llm(),
max_loops=10,
verbose=True,
stopping_condition="finish")
This is how I run it:
dumb_agent.run('make me a linked in post about machine learning. it can only be 240 chars. output the text and the # of chars used. provide detailed reasoning why you chose the wording for this post.')
Despite a successful run on the first "loop," the agent runs to the maximum loop number because there's no stopping condition.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too