agiresearch / AIOS

AIOS: LLM Agent Operating System
http://aios.foundation
MIT License
3.25k stars 388 forks source link

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

Open avBuffer opened 1 week ago

avBuffer commented 1 week ago

Checked other resources

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?

dongyuanjushi commented 1 week ago

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.