@botpress/adk-cli
Version:
Command-line interface for the Botpress Agent Development Kit (ADK)
22 lines (21 loc) • 654 B
text/typescript
// import { Workflow, z } from '@botpress/runtime'
//
// /**
// * Each `step()` call is checkpointed — safe to retry on failure.
// * Start from a trigger or conversation via `MyWorkflow.start({ input })`.
// */
// export const MyWorkflow = new Workflow({
// name: 'myWorkflow',
// input: z.object({
// topic: z.string().describe('The topic to process'),
// }),
// output: z.object({
// result: z.string().describe('The result'),
// }),
// handler: async ({ input, step }) => {
// const result = await step('process', async () => {
// return `Processed: ${input.topic}`
// })
// return { result }
// },
// })