Skip to content

docs: mention 'name' is required in Agent constructor . fix: mention 'name' as required in Agent init doc #1033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2025

Conversation

maneeshanif
Copy link
Contributor

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

@seratch seratch added the documentation Improvements or additions to documentation label Jul 8, 2025
Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rm-openai rm-openai merged commit 586d4b2 into openai:main Jul 8, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants