Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors interrupting the process #34

Open
pedrocacintra opened this issue Oct 19, 2023 · 0 comments
Open

Errors interrupting the process #34

pedrocacintra opened this issue Oct 19, 2023 · 0 comments

Comments

@pedrocacintra
Copy link

It was running well, the AI was assigning the agents and everything but suddently i got this error and it stopped:

RoleFeedback

The role suggestions provided were very helpful and have been incorporated into the role list. The suggestions for the UI/UX Designer, AdversarialWarning: gpt-4 may update over time. Returning num tokens assuming gpt-4-0613.
2023-10-19 19:07:12.974 | INFO | autoagents.system.provider.openai_api:update_cost:95 - Total running cost: $0.729 | Max budget: $10.000 | Current cost: $0.202, prompt_tokens=3727, completion_tokens=1500
Traceback (most recent call last):
File "D:\AI\AutoAgents\myenv\lib\site-packages\tenacity-8.2.2-py3.9.egg\tenacity_asyncio.py", line 50, in call
result = await fn(*args, **kwargs)
File "D:\AI\AutoAgents\autoagents\actions\action\action.py", line 65, in _aask_v1
instruct_content = output_class(**parsed_data)
File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for task
PlanFeedback
field required (type=value_error.missing)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "D:\AI\AutoAgents\main.py", line 56, in
asyncio.run(commanline(proxy=proxy, llm_api_key=args.llm_api_key, serpapi_key=args.serpapi_key, idea=args.idea))
File "C:\Users\pedro\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\pedro\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "D:\AI\AutoAgents\main.py", line 30, in commanline
await startup.startup(idea, investment, n_round, llm_api_key=llm_api_key, serpapi_key=serpapi_key, proxy=proxy)
File "D:\AI\AutoAgents\startup.py", line 14, in startup
await explorer.run(n_round=n_round)
File "D:\AI\AutoAgents\autoagents\explorer.py", line 57, in run
await self.environment.run()
File "D:\AI\AutoAgents\autoagents\environment.py", line 192, in run
await asyncio.gather(*futures)
File "D:\AI\AutoAgents\autoagents\roles\role.py", line 239, in run
rsp = await self._react()
File "D:\AI\AutoAgents\autoagents\roles\role.py", line 209, in _react
return await self._act()
File "D:\AI\AutoAgents\autoagents\roles\manager.py", line 33, in _act
response = await self._rc.todo.run(self._rc.important_memory, history=roles_plan, suggestions=suggestions)
File "D:\AI\AutoAgents\autoagents\actions\create_roles.py", line 141, in run
rsp = await self.aask_v1(prompt, "task", OUTPUT_MAPPING)
File "D:\AI\AutoAgents\myenv\lib\site-packages\tenacity-8.2.2-py3.9.egg\tenacity_asyncio.py", line 88, in async_wrapped
return await fn(*args, **kwargs)
File "D:\AI\AutoAgents\myenv\lib\site-packages\tenacity-8.2.2-py3.9.egg\tenacity_asyncio.py", line 47, in call
do = self.iter(retry_state=retry_state)
File "D:\AI\AutoAgents\myenv\lib\site-packages\tenacity-8.2.2-py3.9.egg\tenacity_init
.py", line 326, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x285fc81c760 state=finished raised ValidationError>]
(myenv) PS D:\AI\AutoAgents>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant