> ## 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: StringPrompt

> TypeScript SDK reference

[weave](../) / StringPrompt

## Hierarchy

* `Prompt`

  ↳ `StringPrompt`

## Table of contents

### Constructors

* [constructor](./stringprompt#constructor)

### Properties

* [\_\_savedRef](./stringprompt#__savedref)
* [content](./stringprompt#content)

### Accessors

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

### Methods

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

## Constructors

### constructor

• **new StringPrompt**(`parameters`): [`StringPrompt`](./stringprompt)

#### Parameters

| Name         | Type                     |
| :----------- | :----------------------- |
| `parameters` | `StringPromptParameters` |

#### Returns

[`StringPrompt`](./stringprompt)

#### Overrides

Prompt.constructor

#### Defined in

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

## 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)

***

### content

• **content**: `string`

#### Defined in

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

## 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?`): `string`

#### Parameters

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

#### Returns

`string`

#### Defined in

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

***

### 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`\<[`StringPrompt`](./stringprompt)>

#### Parameters

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

#### Returns

`Promise`\<[`StringPrompt`](./stringprompt)>

#### Defined in

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