Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async def wrapper(self: AgentT, message: ReceivesT, ctx: MessageContext) -> Prod

return wrapper_handler

if func is None and not callable(func):
if func is None and not callable(func) or getattr(func, "__isabstractmethod__", False):
return decorator
elif callable(func):
return decorator(func)
Expand Down Expand Up @@ -284,7 +284,7 @@ async def wrapper(self: AgentT, message: ReceivesT, ctx: MessageContext) -> None

return wrapper_handler

if func is None and not callable(func):
if func is None and not callable(func) or getattr(func, "__isabstractmethod__", False):
return decorator
elif callable(func):
return decorator(func)
Expand Down Expand Up @@ -404,7 +404,7 @@ async def wrapper(self: AgentT, message: ReceivesT, ctx: MessageContext) -> Prod

return wrapper_handler

if func is None and not callable(func):
if func is None and not callable(func) or getattr(func, "__isabstractmethod__", False):
return decorator
elif callable(func):
return decorator(func)
Expand Down