# Interface IArtifactStore

Artifact store interface.

interface IArtifactStore {
put(
artifact: Artifact,
): {
id: string;
type:
| "code"
| "plan"
| "analysis"
| "review"
| "test"
| "spec"
| "report"
| "vote";
};
get(
ref: {
id: string;
type:
| "code"
| "plan"
| "analysis"
| "review"
| "test"
| "spec"
| "report"
| "vote";
},
): Artifact
| undefined;
query(
filter: ArtifactFilter,
): readonly {
id: string;
type:
| "code"
| "plan"
| "analysis"
| "review"
| "test"
| "spec"
| "report"
| "vote";
}[];
provenance(
ref: {
id: string;
type:
| "code"
| "plan"
| "analysis"
| "review"
| "test"
| "spec"
| "report"
| "vote";
},
): readonly ProvenanceEntry[];
size: number;
}

#### Implemented by

- ArtifactStore

- Defined in packages/nexus-agents/src/pipeline/artifact-store.ts:108

##### Index

### Properties

size

### Methods

put
get
query
provenance

## Properties

### `Readonly` size

size: number

- Defined in packages/nexus-agents/src/pipeline/artifact-store.ts:113

## Methods

### put

- put(
  artifact: Artifact,
  ): {
  id: string;
  type:
  | "code"
  | "plan"
  | "analysis"
  | "review"
  | "test"
  | "spec"
  | "report"
  | "vote";
  }

  #### Parameters

  - artifact: Artifact

  #### Returns {
  id: string;
  type:
  | "code"
  | "plan"
  | "analysis"
  | "review"
  | "test"
  | "spec"
  | "report"
  | "vote";
  }

  - Defined in packages/nexus-agents/src/pipeline/artifact-store.ts:109

### get

- get(
  ref: {
  id: string;
  type:
  | "code"
  | "plan"
  | "analysis"
  | "review"
  | "test"
  | "spec"
  | "report"
  | "vote";
  },
  ): Artifact
  | undefined

  #### Parameters

  - ref: {
    id: string;
    type:
    | "code"
    | "plan"
    | "analysis"
    | "review"
    | "test"
    | "spec"
    | "report"
    | "vote";
    }

  #### Returns Artifact | undefined

  - Defined in packages/nexus-agents/src/pipeline/artifact-store.ts:110

### query

- query(
  filter: ArtifactFilter,
  ): readonly {
  id: string;
  type:
  | "code"
  | "plan"
  | "analysis"
  | "review"
  | "test"
  | "spec"
  | "report"
  | "vote";
  }[]

  #### Parameters

  - filter: ArtifactFilter

  #### Returns readonly {
  id: string;
  type:
  | "code"
  | "plan"
  | "analysis"
  | "review"
  | "test"
  | "spec"
  | "report"
  | "vote";
  }[]

  - Defined in packages/nexus-agents/src/pipeline/artifact-store.ts:111

### provenance

- provenance(
  ref: {
  id: string;
  type:
  | "code"
  | "plan"
  | "analysis"
  | "review"
  | "test"
  | "spec"
  | "report"
  | "vote";
  },
  ): readonly ProvenanceEntry[]

  #### Parameters

  - ref: {
    id: string;
    type:
    | "code"
    | "plan"
    | "analysis"
    | "review"
    | "test"
    | "spec"
    | "report"
    | "vote";
    }

  #### Returns readonly ProvenanceEntry[]

  - Defined in packages/nexus-agents/src/pipeline/artifact-store.ts:112