Skip to content
Merged
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
12 changes: 6 additions & 6 deletions src/ejagent/middleware/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ def __init__(self, *, name: str | None = None, enabled: bool = True) -> None:
self.name = name or type(self).__name__
self.enabled = enabled

def configure_tools(
self,
tool_definitions: Sequence[ToolDefinition],
) -> None:
"""Validate or cache the static tool set before resource startup."""

async def startup(self) -> None:
"""Initialize optional middleware resources."""

Expand All @@ -56,6 +50,12 @@ async def on_task_start(self) -> None:
class ToolMiddleware(Middleware):
"""Decorator around one tool execution."""

def configure_tools(
self,
tool_definitions: Sequence[ToolDefinition],
) -> None:
"""Validate or cache the resolved tool set before middleware startup."""

async def __call__(
self,
context: ToolCallContext,
Expand Down