Skip to content

refactor: Remove message processor #417

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
Jul 11, 2025
Merged
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
4 changes: 2 additions & 2 deletions src/strands/event_loop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
iterative manner.
"""

from . import event_loop, message_processor
from . import event_loop

__all__ = ["event_loop", "message_processor"]
__all__ = ["event_loop"]
4 changes: 0 additions & 4 deletions src/strands/event_loop/event_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from ..types.exceptions import ContextWindowOverflowException, EventLoopException, ModelThrottledException
from ..types.streaming import Metrics, StopReason
from ..types.tools import ToolChoice, ToolChoiceAuto, ToolConfig, ToolGenerator, ToolResult, ToolUse
from .message_processor import clean_orphaned_empty_tool_uses
from .streaming import stream_messages

if TYPE_CHECKING:
Expand Down Expand Up @@ -99,9 +98,6 @@ async def event_loop_cycle(agent: "Agent", kwargs: dict[str, Any]) -> AsyncGener
stream_trace = Trace("stream_messages", parent_id=cycle_trace.id)
cycle_trace.add_child(stream_trace)

# Clean up orphaned empty tool uses
clean_orphaned_empty_tool_uses(agent.messages)

# Process messages with exponential backoff for throttling
message: Message
stop_reason: StopReason
Expand Down
105 changes: 0 additions & 105 deletions src/strands/event_loop/message_processor.py

This file was deleted.

47 changes: 0 additions & 47 deletions tests/strands/event_loop/test_message_processor.py

This file was deleted.