Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c772205

Browse files
authored
Fix incorrect argument description in on_trace_end docstring (openai#958)
The docstring for the `on_trace_end` method in the `TracingProcessor` class incorrectly describes the argument `trace`. The current description states that the argument is the trace that started, but it should refer to the trace that has finished. This commit updates the docstring to clarify that the argument represents the trace that has completed, ensuring accuracy and clarity. Changes: - Updated the argument description for `trace` in `on_trace_end` to clarify it refers to the trace that finished.
1 parent 25db658 commit c772205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/tracing/processor_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def on_trace_end(self, trace: "Trace") -> None:
2323
"""Called when a trace is finished.
2424
2525
Args:
26-
trace: The trace that started.
26+
trace: The trace that finished.
2727
"""
2828
pass
2929

0 commit comments

Comments
 (0)