VRSEN / agency-swarm

The only reliable agent framework built on top of the latest OpenAI Assistants API.
https://vrsen.github.io/agency-swarm/
MIT License
2.05k stars 537 forks source link

missing Union command in agent.py #116

Closed neural-oracle closed 2 months ago

neural-oracle commented 2 months ago

Hi ... I installed agency-swarm today in a new conda environment. Even thought the installation finished successfully I had a TypeError when starting with agency-swarm genesis ...

I solved the issue by changing line 63 typing response_format: Union[str,dict] = "auto",

Instead of response_format: str | dict = "auto",

After the change everything worked.

Ga68 commented 2 months ago

That could be a Python version thing. I'm not certain but I think that Python, at some point, changed the syntax for "or typing".