You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: mention 'name' is required in Agent constructor . fix: mention 'name' as required in Agent init doc (#1033)
## What
Updated the docs under `docs/agents.md` to clarify that the `name`
argument is required when initializing an `Agent`.
## Why
Without this clarification, users get a confusing error:
`TypeError: Agent.__init__() missing 1 required positional argument:
'name'`
This matches the actual constructor in the source code and helps future
devs avoid frustration.
## Reference
- Source:
[`agent.py`](https://github.com/openai/openai-agents-python/blob/main/src/agents/agent.py)
0 commit comments