Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
32 changes: 28 additions & 4 deletions python/packages/core/agent_framework/_workflows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,26 @@
handler,
)
from ._function_executor import FunctionExecutor, executor
from ._group_chat import (
DEFAULT_MANAGER_INSTRUCTIONS,
GroupChatBuilder,
GroupChatDirective,
GroupChatManagerProtocol,
GroupChatOrchestratorExecutor,
GroupChatParticipantNodes,
GroupChatParticipantSpec,
GroupChatRequestMessage,
GroupChatResponseMessage,
GroupChatState,
GroupChatTurn,
GroupChatWiring,
StandardGroupChatManager,
)
from ._magentic import (
MagenticAgentDeltaEvent,
MagenticAgentExecutor,
MagenticAgentMessageEvent,
MagenticBuilder,
MagenticCallbackEvent,
MagenticCallbackMode,
MagenticContext,
MagenticFinalResultEvent,
MagenticManagerBase,
Expand Down Expand Up @@ -103,6 +116,7 @@
from ._workflow_executor import WorkflowExecutor

__all__ = [
"DEFAULT_MANAGER_INSTRUCTIONS",
"DEFAULT_MAX_ITERATIONS",
"AgentExecutor",
"AgentExecutorRequest",
Expand All @@ -126,14 +140,23 @@
"FileCheckpointStorage",
"FunctionExecutor",
"GraphConnectivityError",
"GroupChatBuilder",
"GroupChatDirective",
"GroupChatManagerProtocol",
"GroupChatOrchestratorExecutor",
"GroupChatParticipantNodes",
"GroupChatParticipantSpec",
"GroupChatRequestMessage",
"GroupChatResponseMessage",
"GroupChatState",
"GroupChatTurn",
"GroupChatWiring",
"InMemoryCheckpointStorage",
"InProcRunnerContext",
"MagenticAgentDeltaEvent",
"MagenticAgentExecutor",
"MagenticAgentMessageEvent",
"MagenticBuilder",
"MagenticCallbackEvent",
"MagenticCallbackMode",
"MagenticContext",
"MagenticFinalResultEvent",
"MagenticManagerBase",
Expand All @@ -158,6 +181,7 @@
"SequentialBuilder",
"SharedState",
"SingleEdgeGroup",
"StandardGroupChatManager",
"StandardMagenticManager",
"SwitchCaseEdgeGroup",
"SwitchCaseEdgeGroupCase",
Expand Down
22 changes: 18 additions & 4 deletions python/packages/core/agent_framework/_workflows/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,21 @@ from ._executor import (
handler,
)
from ._function_executor import FunctionExecutor, executor
from ._group_chat import (
GroupChatBuilder,
GroupChatDirective,
GroupChatManagerProtocol,
GroupChatOrchestratorExecutor,
GroupChatRequestMessage,
GroupChatResponseMessage,
GroupChatState,
StandardGroupChatManager,
)
from ._magentic import (
MagenticAgentDeltaEvent,
MagenticAgentExecutor,
MagenticAgentMessageEvent,
MagenticBuilder,
MagenticCallbackEvent,
MagenticCallbackMode,
MagenticContext,
MagenticFinalResultEvent,
MagenticManagerBase,
Expand Down Expand Up @@ -124,14 +132,19 @@ __all__ = [
"FileCheckpointStorage",
"FunctionExecutor",
"GraphConnectivityError",
"GroupChatBuilder",
"GroupChatDirective",
"GroupChatManagerProtocol",
"GroupChatOrchestratorExecutor",
"GroupChatRequestMessage",
"GroupChatResponseMessage",
"GroupChatState",
"InMemoryCheckpointStorage",
"InProcRunnerContext",
"MagenticAgentDeltaEvent",
"MagenticAgentExecutor",
"MagenticAgentMessageEvent",
"MagenticBuilder",
"MagenticCallbackEvent",
"MagenticCallbackMode",
"MagenticContext",
"MagenticFinalResultEvent",
"MagenticManagerBase",
Expand All @@ -156,6 +169,7 @@ __all__ = [
"SequentialBuilder",
"SharedState",
"SingleEdgeGroup",
"StandardGroupChatManager",
"StandardMagenticManager",
"SwitchCaseEdgeGroup",
"SwitchCaseEdgeGroupCase",
Expand Down
8 changes: 1 addition & 7 deletions python/packages/core/agent_framework/_workflows/_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,13 +450,7 @@ def to_dict(self) -> dict[str, Any]:

def handler(
func: Callable[[ExecutorT, Any, ContextT], Awaitable[Any]],
) -> (
Callable[[ExecutorT, Any, ContextT], Awaitable[Any]]
| Callable[
[Callable[[ExecutorT, Any, ContextT], Awaitable[Any]]],
Callable[[ExecutorT, Any, ContextT], Awaitable[Any]],
]
):
) -> Callable[[ExecutorT, Any, ContextT], Awaitable[Any]]:
"""Decorator to register a handler for an executor.

Args:
Expand Down
Loading