> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memmachine.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MemoryProducerRole

> Definition of roles that can contribute memories to the engine.

## Overview

The `MemoryProducerRole` type is a string union that classifies the entity responsible for creating a specific memory entry. This helps the engine distinguish between human input and AI-generated responses.

***

## Type Definition

```typescript theme={null}
type MemoryProducerRole = "user" | "assistant" | "system";
```

| **Value**     | **Description**                                                            |
| ------------- | -------------------------------------------------------------------------- |
| `"user"`      | Represents the end-user or human participant in the interaction.           |
| `"assistant"` | Represents the AI model or bot providing a response.                       |
| `"system"`    | Represents background context or instructions provided by the application. |

***

## Usage Example

```typescript theme={null}
import { MemoryProducerRole } from '@memmachine/client';

const currentRole: MemoryProducerRole = 'assistant';
```
