Helper to define an agent according to the required interface.
export default defineAgent({ entry: async (ctx: JobContext) => { ... }, prewarm: (proc: JobProcess) => { ... },}) Copy
export default defineAgent({ entry: async (ctx: JobContext) => { ... }, prewarm: (proc: JobProcess) => { ... },})
Helper to define an agent according to the required interface.