from llama_index.core.workflow import Workflow from llama_index.core.workflow.context_serializers import JsonSerializer, JsonPickleSerializer handler = workflow.run() result = await handler serialized_context = handler.ctx.to_dict(serializer=JsonSerializer()) # resume at a later point ctx = Context.from_dict(serialized_context, serializer=JsonSerializer()) handler = workflow.run(ctx=ctx) final_result = await handler
llama-deploy
automates for you