Skip to content
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
6 changes: 3 additions & 3 deletions src/strands/multiagent/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from abc import ABC, abstractmethod
from dataclasses import dataclass, field
from enum import Enum
from typing import Union
from typing import Any, Union

from ..agent import AgentResult
from ..types.content import ContentBlock
Expand Down Expand Up @@ -76,11 +76,11 @@ class MultiAgentBase(ABC):
"""

@abstractmethod
async def execute_async(self, task: str | list[ContentBlock]) -> MultiAgentResult:
async def execute_async(self, task: str | list[ContentBlock], **kwargs: Any) -> MultiAgentResult:
"""Execute task asynchronously."""
raise NotImplementedError("execute_async not implemented")

@abstractmethod
def execute(self, task: str | list[ContentBlock]) -> MultiAgentResult:
def execute(self, task: str | list[ContentBlock], **kwargs: Any) -> MultiAgentResult:
"""Execute task synchronously."""
raise NotImplementedError("execute not implemented")
4 changes: 2 additions & 2 deletions src/strands/multiagent/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def __init__(self, nodes: dict[str, GraphNode], edges: set[GraphEdge], entry_poi
self.entry_points = entry_points
self.state = GraphState()

def execute(self, task: str | list[ContentBlock]) -> GraphResult:
def execute(self, task: str | list[ContentBlock], **kwargs: Any) -> GraphResult:
"""Execute task synchronously."""

def execute() -> GraphResult:
Expand All @@ -260,7 +260,7 @@ def execute() -> GraphResult:
future = executor.submit(execute)
return future.result()

async def execute_async(self, task: str | list[ContentBlock]) -> GraphResult:
async def execute_async(self, task: str | list[ContentBlock], **kwargs: Any) -> GraphResult:
"""Execute the graph asynchronously."""
logger.debug("task=<%s> | starting graph execution", task)

Expand Down
Loading