forked from themanojdesai/python-a2a
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
56 lines (47 loc) · 1.37 KB
/
Copy path__init__.py
File metadata and controls
56 lines (47 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
"""
Agent Flow: An n8n-like workflow system based on Python A2A
This package provides a workflow system for creating, managing, and executing
agent networks. It allows users to connect agents together, define data flow,
and create complex workflows with minimal code.
"""
__version__ = "0.1.0"
# Import main components for easier access
from .models.workflow import Workflow, WorkflowNode, WorkflowEdge, NodeType, EdgeType
from .models.agent import AgentRegistry, AgentDefinition, AgentStatus
from .models.tool import ToolRegistry, ToolDefinition, ToolStatus
from .engine.executor import WorkflowExecutor
from .storage.workflow_storage import FileWorkflowStorage
# Import server components if available
try:
from .server.web import run_web_server
from .server.api import create_app
HAS_SERVER = True
except ImportError:
HAS_SERVER = False
# Define what gets imported with "from agent_flow import *"
__all__ = [
# Version
'__version__',
# Models
'Workflow',
'WorkflowNode',
'WorkflowEdge',
'NodeType',
'EdgeType',
'AgentRegistry',
'AgentDefinition',
'AgentStatus',
'ToolRegistry',
'ToolDefinition',
'ToolStatus',
# Engine
'WorkflowExecutor',
# Storage
'FileWorkflowStorage',
]
# Add server components if available
if HAS_SERVER:
__all__.extend([
'run_web_server',
'create_app',
])