SwarmVersion

The `SwarmVersion` entity.

Definition

TypeScript
interface SwarmVersion {
  id: string;
  swarmId: string;
  name: string;
  parentId: string | null;
  instructions: string;
  models: Array<
    | "anthropic/claude-opus-4-6"
    | "anthropic/claude-sonnet-4-6"
    | "anthropic/claude-haiku-4-5"
    | "openai/gpt-5.4"
    | "openai/gpt-4o"
    | "openai/gpt-4o-mini"
  >;
  inputSchemaId: string | null;
  outputSchemaId: string | null;
  entryNodeId: string | null;
  createdAt: string;
  updatedAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
swarmIdstringrequired — Swarm this version belongs to.
namestringrequired — Version label (e.g. 'v1', 'experiment').
parentIdstring | nullrequired — Version this one was forked from; null for the initial version.
instructionsstringrequired — System prompt shared across all nodes in the swarm.
modelsArray<"anthropic/claude-opus-4-6" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-haiku-4-5" | "openai/gpt-5.4" | "openai/gpt-4o" | "openai/gpt-4o-mini">required — Model IDs available to swarm nodes, in preference order.
inputSchemaIdstring | nullrequired — Schema enforced on input to the entry node.
outputSchemaIdstring | nullrequired — Schema expected for the swarm's final output.
entryNodeIdstring | nullrequired — Node where execution begins; null until nodes are added.
createdAtstringreadonly required — ISO-8601 timestamp of creation.
updatedAtstringreadonly required — ISO-8601 timestamp of the last update.