Skip to content

Commit bd23068

Browse files
committed
Sub-workflow implementation #1. Stuck because of singleton RequestInfoExecutor, going to make a change to remove that restrivtion.
1 parent c1d50b1 commit bd23068

11 files changed

Lines changed: 1865 additions & 14 deletions

File tree

‎.claude/settings.local.json‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(pip install:*)",
5+
"Bash(python -m pytest tests/test_sub_workflow.py::test_basic_sub_workflow -v -s)",
6+
"Bash(python -m pytest tests/test_sub_workflow.py::test_basic_sub_workflow -v)",
7+
"Bash(python -m pytest tests/test_simple_sub_workflow.py -v -s)",
8+
"Bash(python test:*)",
9+
"Bash(python:*)",
10+
"Bash(rm:*)",
11+
"Bash(timeout 10 python:*)",
12+
"Bash(timeout 5 python step_08_sub_workflow.py)",
13+
"Bash(timeout:*)"
14+
],
15+
"deny": [],
16+
"ask": []
17+
}
18+
}

‎python/packages/workflow/agent_framework_workflow/__init__.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@
2929
Executor,
3030
RequestInfoExecutor,
3131
RequestInfoMessage,
32+
RequestResponse,
33+
SubWorkflowRequestInfo,
34+
SubWorkflowResponse,
35+
WorkflowExecutor,
3236
handler,
37+
intercepts_request,
3338
)
3439
from ._runner_context import (
3540
InProcRunnerContext,
@@ -76,19 +81,24 @@
7681
"RequestInfoExecutor",
7782
"RequestInfoExecutor",
7883
"RequestInfoMessage",
84+
"RequestResponse",
7985
"RunnerContext",
86+
"SubWorkflowRequestInfo",
87+
"SubWorkflowResponse",
8088
"TypeCompatibilityError",
8189
"ValidationTypeEnum",
8290
"Workflow",
8391
"WorkflowBuilder",
8492
"WorkflowCheckpoint",
8593
"WorkflowCompletedEvent",
8694
"WorkflowContext",
95+
"WorkflowExecutor",
8796
"WorkflowEvent",
8897
"WorkflowRunResult",
8998
"WorkflowStartedEvent",
9099
"WorkflowValidationError",
91100
"__version__",
92101
"handler",
102+
"intercepts_request",
93103
"validate_workflow_graph",
94104
]

0 commit comments

Comments
 (0)