# Interface PromptMessage

A single message in a prompt template.

interface PromptMessage {
role: "user" | "assistant";
content: { type: "text"; text: string };
}

- Defined in packages/nexus-agents/src/mcp/prompts/prompt-definitions.ts:16

##### Index

### Properties

role
content

## Properties

### `Readonly` role

role: "user" | "assistant"

- Defined in packages/nexus-agents/src/mcp/prompts/prompt-definitions.ts:17

### `Readonly` content

content: { type: "text"; text: string }

- Defined in packages/nexus-agents/src/mcp/prompts/prompt-definitions.ts:18