refactor, date context

This commit is contained in:
Steve Androulakis
2025-01-01 13:16:18 -08:00
parent 8115f0d2df
commit e7e8e7e658
17 changed files with 118 additions and 90 deletions

View File

@@ -0,0 +1,14 @@
from temporalio import workflow
from .tool_workflow import ToolWorkflow, CombinedInput, ToolWorkflowParams
@workflow.defn
class ParentWorkflow:
@workflow.run
async def run(self, some_input: dict) -> dict:
combined_input = CombinedInput(
tool_params=ToolWorkflowParams(None, None), tools_data=some_input
)
child = workflow.start_child_workflow(ToolWorkflow.run, combined_input)
result = await child
return result