openai / swarm

Educational framework exploring ergonomic, lightweight multi-agent orchestration. Managed by OpenAI Solution team.
MIT License
14.93k stars 1.38k forks source link

Make Result.assistant --> Optional[Assistant] #21

Closed eburke-openai closed 5 months ago

eburke-openai commented 5 months ago
Why/Context/Summary

Currently the Result.assistant field is non-optional but is set to None by default. The logic indicates that None is valid. However, setting it to None results in pydantic complaining about it.

Test plan

Tested locally