Skip to content
Français

ExecutionRequirement

import type { ExecutionRequirement } from "@elie-laloum/outpost/core";

The fields below cover all variants; the signature specifies their allowed combinations.

  • kindRequired
    "binding" | "agent"
    binding for a workspace binding the sandbox provider must support, agent for a capability an agent must have declared.
  • bindingVariant-dependent
    FileWorkspaceBinding
    With kind binding: the binding the workspace source needs, compared with the provider’s workspaces.bindings.
  • agentVariant-dependent
    string
    With kind agent: the name of the agent that must provide the capability.
  • capabilityVariant-dependent
    "continuation" | "dispatch" | "interactive" | "liveInput" | "repairs"
    With kind agent: the file workspace capability required, such as dispatch for every run or continuation when settings resumes a conversation.
export type ExecutionRequirement =
  | {
      readonly kind: "binding";
      readonly binding: FileWorkspaceBinding;
    }
  | {
      readonly kind: "agent";
      readonly agent: string;
      readonly capability: FileAgentCapability;
    };