Skip to content

Commit 45c25f8

Browse files
Fix Docstring Reference in 'ToolsToFinalOutputFunction' in 'agent.py' (#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.
1 parent 3454e3b commit 45c25f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ToolsToFinalOutputResult:
4444
MaybeAwaitable[ToolsToFinalOutputResult],
4545
]
4646
"""A function that takes a run context and a list of tool results, and returns a
47-
`ToolToFinalOutputResult`.
47+
`ToolsToFinalOutputResult`.
4848
"""
4949

5050

0 commit comments

Comments
 (0)