agiresearch/AIOS

[Bug] Fail to generate a valid workflow. Invalid JSON?

avBuffer opened this issue · 1 comments

Checked other resources

  • I added a very descriptive title to this issue.
  • I am sure the issue hasn't been already addressed by searching through https://github.com/agiresearch/AIOS/issues.
  • The usage issue is not resolved by updating to the latest stable version in the main branch.

Describe your current environment

No response

Describe the bug

(aios) archermind@archermind:~/work/workspace/AIOS$ python main.py --llm_name ollama/llama3:8b --use_backend ollama
[🤖ollama/llama3:8b] AIOS LLM successfully loaded.

[example/academic_agent] Initialized.

[example/academic_agent] Create an Instagram post: Image of a person using a new tech gadget, text highlighting its key features and benefits.

[Scheduler] example/academic_agent[PID=4624665] is executing.

[🤖ollama/llama3:8b] example/academic_agent is switched to executing.

[Scheduler] example/academic_agent[PID=6955842] is executing.

[🤖ollama/llama3:8b] example/academic_agent is switched to executing.

[Scheduler] example/academic_agent[PID=7630327] is executing.

[🤖ollama/llama3:8b] example/academic_agent is switched to executing.

[example/academic_agent] Fail to generate a valid workflow. Invalid JSON?

This is because some open-sourced models is not powerful enough to generate automatic workflows. For these small models, it is recommended to set the workflow mode as manual to run the agents.