# Interface MemoryPayload

Payload for memory operation events.

interface MemoryPayload {
type: "memory";
operation: "write" | "read";
memoryType: string;
key?: string;
sizeBytes?: number;
}

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:61

##### Index

### Properties

type
operation
memoryType
key?
sizeBytes?

## Properties

### `Readonly` type

type: "memory"

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:62

### `Readonly` operation

operation: "write" | "read"

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:63

### `Readonly` memoryType

memoryType: string

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:64

### `Optional` `Readonly` key

key?: string

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:65

### `Optional` `Readonly` sizeBytes

sizeBytes?: number

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:66