Skip to content

Commit cefc3cc

Browse files
authored
Merge pull request #2219 from samdoran/correct-namespace-package
LCORE- Fix accidental namspace package
2 parents 4f829b5 + 04bcd29 commit cefc3cc

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/utils/agents/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Agent helpers."""

src/utils/agents/streaming.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Agent streaming helpers for the streaming_query flow."""
22

3+
# pylint: disable=R0913,R0914, R0917
4+
35
from __future__ import annotations
46

57
import asyncio
@@ -403,7 +405,7 @@ def _process_token(
403405

404406

405407
@singledispatch
406-
def dispatch_stream_event(
408+
def dispatch_stream_event( # pylint: disable=useless-return
407409
event: AgentDispatchEvent,
408410
_state: AgentTurnAccumulator,
409411
) -> Optional[StreamEventPayload]:
@@ -417,6 +419,7 @@ def dispatch_stream_event(
417419
None when the event does not map to an SSE payload.
418420
"""
419421
logger.debug("Ignoring event kind=%s", event.event_kind)
422+
420423
return None
421424

422425

src/utils/agents/tool_processor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def summarize_native_tool_call(
101101
type="mcp_call",
102102
)
103103
case _:
104-
logger.warning(f"Unknown tool name: {part.tool_name}")
104+
logger.warning("Unknown tool name: %s", part.tool_name)
105105
return None
106106

107107

@@ -184,7 +184,7 @@ def process_native_tool_result(
184184
case tool_name if tool_name.startswith(_MCP_SERVER_TOOL_PREFIX):
185185
tool_result = summarize_mcp_tool_result(part, state.tool_round)
186186
case _:
187-
logger.warning(f"Unknown tool name: {part.tool_name}")
187+
logger.warning("Unknown tool name: %s", part.tool_name)
188188
return None
189189

190190
state.emitted_tool_result_ids.add(tool_result.id)

0 commit comments

Comments
 (0)