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

# Prompt

> Create and normalize user and tool messages for chat calls

`Prompt` is a validated wrapper for user input and tool-result payloads.

## Constructor

```ts theme={null}
new Prompt(options)
```

Accepted options (discriminated):

* `{ text: string }`
* `{ toolResult: ToolOutcomesType }`

`PromptConfigurationConflict` is thrown if both or neither are set.

## Methods

### getSnapshot

```ts theme={null}
getSnapshot(): PromptSnapshot
```

### getNormalizedSnapshot

```ts theme={null}
getNormalizedSnapshot(): NormalizedPromptSnapshot
```

### toString

```ts theme={null}
toString(): string
```

## Example

```ts theme={null}
const message = new Prompt({ text: 'Show my Base balance' })
```
