Skip to content
Français

FileInteractiveAgentTaskOptions

import type { FileInteractiveAgentTaskOptions } from "@elie-laloum/outpost/workflows";
  • workspaceSourceRequired
    FileWorkspaceSource
    Declared source for an owned resource; mutually exclusive with borrowing an open workspace.
  • sandboxProviderRequired
    SandboxProvider
    Execution provider with the required file binding capability; legacy providers remain usable for Git.
  • agentRequired
    Agent
    Agent with portable conversation capture and resume; otherwise defineInteractiveAgentTask() throws with code configuration.
  • keyRequired
    string
    Stable workflow task key; also participates in the retained branch identity.
  • afterOptional
    readonly Task<unknown>[] | undefined
    Dependencies that must finish successfully before the first turn.
  • timeoutMsOptional
    number | undefined
    Cooperative deadline for each executing task attempt, excluding time waiting for a human answer.
  • briefRequired
    string
    Literal initial instructions; human replies are supplied separately on subsequent turns. Exact injected text and customization limits.
  • actorsRequired
    readonly string[]
    Nonempty unique identifiers allowed to answer; the application must authenticate their users.
  • maxTurnsOptional
    number | undefined
    Maximum completed agent turns, including the final result; defaults to 12. A question at the last turn fails instead of waiting indefinitely.
  • signalOptional
    AbortSignal | undefined
    Cancellation signal propagated to the operation and its process group; reusable sandboxes remain usable.
  • hooksOptional
    LifecycleHooks | undefined
    Declared workspaceReady, hostReady and sandboxReady preparation commands.
  • recoveryOptional
    FileWorkspaceRecoveryAuthorization | undefined
    Explicit stopped-process recovery authorization; interrupted replay remains a separate workflow decision.
  • storageQuotaOptional
    Omit<StorageReservationOptions, "signal"> | undefined
    Admission reservation through Transport; coordinates cooperating writers without enforcing a physical disk quota.
  • inputsOptional
    readonly WorkspaceInput[] | undefined
    Explicit file inputs; JSON workflow parameters are never implicitly written to disk.
  • runtimeOptional
    WorkspaceRuntimeOptions | undefined
    Control directory and logical namespace, separate from the workspace files.
  • pathsOptional
    readonly string[] | undefined
    Explicit relative path selection; copy selection does not implicitly apply .gitignore.
  • retentionOptional
    WorkspaceRetention | undefined
    run cleans successful owned work, local retains it, portable additionally requires an explicit Transport and namespace.
export interface FileInteractiveAgentTaskOptions
  extends
    Omit<
      InteractiveAgentTaskOptions,
      "repository" | "bootstrap" | "conversationHome" | "sandboxProvider"
    >,
    Omit<FileWorkspaceOptions, "source"> {
  readonly workspaceSource: FileWorkspaceSource;
  readonly sandboxProvider: SandboxProvider;
}