Skip to content

Conversation

MuhammedSuhaib
Copy link
Contributor

On https://openai.github.io/openai-agents-python/ref/run, the docstrings for the run functions were previously in a very raw, unstructured format, making them difficult to read.

This PR reformats those docstrings into Google style, so they now render cleanly and are reader-friendly in the documentation site.

Changes:

Reformatted docstrings for run, run_sync, and run_streaming.

Added consistent section headers (Args, Returns, Note).

Adjusted indentation, spacing, and blank lines only.

Notes:

⚠️ No wording or content was changed — only formatting.

Purpose: Improve readability and usability of the reference docs without altering semantics.

comparison

…strings rendering

On https://openai.github.io/openai-agents-python/ref/run
, the docstrings for the run functions were previously in a very raw, unstructured format, making them difficult to read.

This PR reformats those docstrings into Google style, so they now render cleanly and are reader-friendly in the documentation site.

Changes:

Reformatted docstrings for run, run_sync, and run_streaming.

Added consistent section headers (Args, Returns, Note).

Adjusted indentation, spacing, and blank lines only.

Notes:

⚠️ No wording or content was changed — only formatting.

Purpose: Improve readability and usability of the reference docs without altering semantics.
@seratch seratch added the documentation Improvements or additions to documentation label Sep 15, 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.

The docstring improvement is great, but can you include only the docstring changes in this PR? I understand other code formatting changes should be safe too but we'd like to minimize the diff to achieve a single purpose.

@seratch
Copy link
Member

seratch commented Sep 16, 2025

The changes look good to me; can you resolve the conflicts with the latest main branch?

@seratch seratch merged commit bc949c3 into openai:main Sep 17, 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.

2 participants