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

# Class: MessagesPrompt

> TypeScript SDK reference

[weave](../) / MessagesPrompt

## Hierarchy

* `Prompt`

  ↳ `MessagesPrompt`

## Table of contents

### Constructors

* [constructor](./messagesprompt#constructor)

### Properties

* [\_\_savedRef](./messagesprompt#__savedref)
* [messages](./messagesprompt#messages)

### Accessors

* [description](./messagesprompt#description)
* [name](./messagesprompt#name)

### Methods

* [format](./messagesprompt#format)
* [saveAttrs](./messagesprompt#saveattrs)
* [get](./messagesprompt#get)

## Constructors

### constructor

• **new MessagesPrompt**(`parameters`): [`MessagesPrompt`](./messagesprompt)

#### Parameters

| Name         | Type                       |
| :----------- | :------------------------- |
| `parameters` | `MessagesPromptParameters` |

#### Returns

[`MessagesPrompt`](./messagesprompt)

#### Overrides

Prompt.constructor

#### Defined in

[prompt.ts:40](https://github.com/wandb/weave/blob/62f1e46098095776ee29b730ad10b3b3d1a68307/sdks/node/src/prompt.ts#L40)

## Properties

### \_\_savedRef

• `Optional` **\_\_savedRef**: [`ObjectRef`](./objectref) | `Promise`\<[`ObjectRef`](./objectref)>

#### Inherited from

Prompt.\_\_savedRef

#### Defined in

[weaveObject.ts:73](https://github.com/wandb/weave/blob/62f1e46098095776ee29b730ad10b3b3d1a68307/sdks/node/src/weaveObject.ts#L73)

***

### messages

• **messages**: `Record`\<`string`, `any`>\[]

#### Defined in

[prompt.ts:38](https://github.com/wandb/weave/blob/62f1e46098095776ee29b730ad10b3b3d1a68307/sdks/node/src/prompt.ts#L38)

## Accessors

### description

• `get` **description**(): `undefined` | `string`

#### Returns

`undefined` | `string`

#### Inherited from

Prompt.description

#### Defined in

[weaveObject.ts:100](https://github.com/wandb/weave/blob/62f1e46098095776ee29b730ad10b3b3d1a68307/sdks/node/src/weaveObject.ts#L100)

***

### name

• `get` **name**(): `string`

#### Returns

`string`

#### Inherited from

Prompt.name

#### Defined in

[weaveObject.ts:96](https://github.com/wandb/weave/blob/62f1e46098095776ee29b730ad10b3b3d1a68307/sdks/node/src/weaveObject.ts#L96)

## Methods

### format

▸ **format**(`values?`): `Record`\<`string`, `any`>\[]

#### Parameters

| Name     | Type                       |
| :------- | :------------------------- |
| `values` | `Record`\<`string`, `any`> |

#### Returns

`Record`\<`string`, `any`>\[]

#### Defined in

[prompt.ts:67](https://github.com/wandb/weave/blob/62f1e46098095776ee29b730ad10b3b3d1a68307/sdks/node/src/prompt.ts#L67)

***

### saveAttrs

▸ **saveAttrs**(): `Object`

#### Returns

`Object`

#### Inherited from

Prompt.saveAttrs

#### Defined in

[weaveObject.ts:77](https://github.com/wandb/weave/blob/62f1e46098095776ee29b730ad10b3b3d1a68307/sdks/node/src/weaveObject.ts#L77)

***

### get

▸ **get**(`client`, `uri`): `Promise`\<[`MessagesPrompt`](./messagesprompt)>

#### Parameters

| Name     | Type                           |
| :------- | :----------------------------- |
| `client` | [`WeaveClient`](./weaveclient) |
| `uri`    | `string`                       |

#### Returns

`Promise`\<[`MessagesPrompt`](./messagesprompt)>

#### Defined in

[prompt.ts:73](https://github.com/wandb/weave/blob/62f1e46098095776ee29b730ad10b3b3d1a68307/sdks/node/src/prompt.ts#L73)
