Commit 586d4b2
authored
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)1 parent 18cb55e commit 586d4b2
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments