Skip to content
Français

AgentTaskOptions

  • sandboxRequired
    Sandbox
    Existing caller-owned sandbox reused by the task; the task does not close it.
  • requestRequired
    (context: TaskContext) => DispatchOptions<T>
    Build dispatch options from task dependencies for the existing sandbox.
  • quotaResumeOptional
    QuotaResumePolicy | undefined
    After a quota pause, continue the captured conversation with a resume instruction (continue, default) or send the original request again (restart). The original request is sent when the agent cannot resume or is a fallback agent, or when the request sets continuation or several passes.
export type AgentTaskOptions<T> = {
  sandbox: Sandbox;
  request: (context: TaskContext) => DispatchOptions<T>;
  /** After a quota pause, continue the captured conversation or start a new one. */
  quotaResume?: QuotaResumePolicy;
};