Skip to content

Commit 9121ddb

Browse files
Update docstring in _check_for_final_output_from_tools to reflect correct return type
1 parent a3128ce commit 9121ddb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/agents/_run_impl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,10 @@ async def _check_for_final_output_from_tools(
961961
context_wrapper: RunContextWrapper[TContext],
962962
config: RunConfig,
963963
) -> ToolsToFinalOutputResult:
964-
"""Returns (i, final_output)."""
964+
"""Determine if tool results should produce a final output.
965+
Returns:
966+
ToolsToFinalOutputResult: Indicates whether final output is ready, and the output value.
967+
"""
965968
if not tool_results:
966969
return _NOT_FINAL_OUTPUT
967970

0 commit comments

Comments
 (0)