Skip to content

Fix typos in event names and comments across multiple files #155

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/agents/_run_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ def stream_step_result_to_queue(
elif isinstance(item, HandoffCallItem):
event = RunItemStreamEvent(item=item, name="handoff_requested")
elif isinstance(item, HandoffOutputItem):
event = RunItemStreamEvent(item=item, name="handoff_occured")
event = RunItemStreamEvent(item=item, name="handoff_occurred")
elif isinstance(item, ToolCallItem):
event = RunItemStreamEvent(item=item, name="tool_called")
elif isinstance(item, ToolCallOutputItem):
Expand Down
2 changes: 1 addition & 1 deletion src/agents/function_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _detect_docstring_style(doc: str) -> DocstringStyle:

@contextlib.contextmanager
def _suppress_griffe_logging():
# Supresses warnings about missing annotations for params
# Suppresses warnings about missing annotations for params
logger = logging.getLogger("griffe")
previous_level = logger.getEffectiveLevel()
logger.setLevel(logging.ERROR)
Expand Down
2 changes: 1 addition & 1 deletion src/agents/stream_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RunItemStreamEvent:
name: Literal[
"message_output_created",
"handoff_requested",
"handoff_occured",
"handoff_occured", # Note: This is misspelled as 'occured' for backward compatibility
"tool_called",
"tool_output",
"reasoning_item_created",
Expand Down