Skip to content

Fix Docstring Reference in 'ToolsToFinalOutputFunction' in 'agent.py' #391

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
Apr 1, 2025

Conversation

anasbaigmughal
Copy link
Contributor

Summary

This pull request fixes docstring in ToolsToFinalOutputFunction, where ToolToFinalOutputResult was incorrectly referenced instead of ToolsToFinalOutputResult.

Changes Made

  • Updated the docstring of ToolsToFinalOutputFunction to correctly reference ToolsToFinalOutputResult.

Before

"""A function that takes a run context and a list of tool results, and returns a
`ToolToFinalOutputResult`.
"""

After

"""A function that takes a run context and a list of tool results, and returns a
`ToolsToFinalOutputResult`.
"""

Why This Change?

  • The incorrect reference could cause confusion for developers reading the code.
  • This aligns the documentation with the actual return type of the function.

Checklist

  • Verify correct reference to ToolsToFinalOutputResult
  • Ensure no functionality is affected

Testing

This is a documentation-only change and does not affect runtime behavior.

Reviewer Notes

  • Please review for accuracy in documentation.
  • No additional tests are needed since this is a non-functional change.

@anasbaigmughal anasbaigmughal reopened this Apr 1, 2025
@rm-openai rm-openai merged commit 45c25f8 into openai:main Apr 1, 2025
5 checks passed
Lightblues pushed a commit to Lightblues/openai-agents-python that referenced this pull request Apr 13, 2025
…openai#391)

### **Summary**
This pull request fixes docstring in `ToolsToFinalOutputFunction`, where
`ToolToFinalOutputResult` was incorrectly referenced instead of
`ToolsToFinalOutputResult`.

### **Changes Made**
- Updated the docstring of `ToolsToFinalOutputFunction` to correctly
reference `ToolsToFinalOutputResult`.

### **Before**
```python
"""A function that takes a run context and a list of tool results, and returns a
`ToolToFinalOutputResult`.
"""
```

### **After**
```python
"""A function that takes a run context and a list of tool results, and returns a
`ToolsToFinalOutputResult`.
"""
```

### **Why This Change?**
- The incorrect reference could cause confusion for developers reading
the code.
- This aligns the documentation with the actual return type of the
function.

### **Checklist**
- [x] Verify correct reference to `ToolsToFinalOutputResult`
- [x] Ensure no functionality is affected

### **Testing**
This is a documentation-only change and does not affect runtime
behavior.

### **Reviewer Notes**
- Please review for accuracy in documentation.
- No additional tests are needed since this is a non-functional change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants