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.75k stars 729 forks source link

Make BaseTool.additional_instructions parameter optional #169

Closed bonk1t closed 2 months ago

bonk1t commented 2 months ago

Fix https://github.com/VRSEN/agency-swarm/issues/168

The issue is that we enforce strict str type on the additional_instructions parameter:

🐧 RoutingAgent 🛠️ Executing Function Function(arguments='{"my_primary_instructions":"...","recipient":"...Agent","message":"...","additional_instructions":null}', name='SendMessage') ──────────────────────────────────────────────────────────────────────────────── SendMessage ⚙️ Function Output Error: 1 validation error for SendMessage additional_instructions Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]

The fix: to use Optional.