const testWorkflow = createWorkflow<ChatContext>({ // <-- provide Context here
id: "test-workflow",
description: "Tests the workflow",
inputSchema: ...,
outputSchema: ...,
})
.map(async ({ inputData, runtimeContext}) => {
runtimeContext // here this would be of type RuntimeContext<ChatContext>
})
.then(testStep)
.commit();
const testWorkflow = createWorkflow<ChatContext>({ // <-- provide Context here
id: "test-workflow",
description: "Tests the workflow",
inputSchema: ...,
outputSchema: ...,
})
.map(async ({ inputData, runtimeContext}) => {
runtimeContext // here this would be of type RuntimeContext<ChatContext>
})
.then(testStep)
.commit();