AgentVersion

The `AgentVersion` entity.

Definition

TypeScript
interface AgentVersion {
  id: string;
  agentId: 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;
  createdAt: string;
  updatedAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
agentIdstringrequired — Agent 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 used when the agent runs this version.
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 the agent may use, in preference order.
inputSchemaIdstring | nullrequired — Structured-input schema enforced on run inputs, if any.
outputSchemaIdstring | nullrequired — Structured-output schema the agent is asked to produce.
createdAtstringreadonly required — ISO-8601 timestamp of creation.
updatedAtstringreadonly required — ISO-8601 timestamp of the last update.