Skip to main content

AiTaskHandle

interface

One announced task. `start` posts the kickoff, `complete` or `fail` posts the outcome; each lifecycle event is a system notification at an explicit attention level, so the session's record — and the agent, as much as the caller asked — always knows what ran, when, and how it ended.

interface AiTaskHandle

Import

import { AiTaskHandle } from '@modular/sdk';

Members3

label
string
complete()
(report: AiTaskReport) => Promise<void>

Post the finished report at its declared attention level.

fail()
(reason: string) => Promise<void>

Post the failure at `respond` attention: failures demand an answer.