> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-drtangible-wip-test-inline-tag.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# StringPrompt

> TypeScript SDK reference

Defined in: [src/prompt.ts:19](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/prompt.ts#L19)

## Extends

* `Prompt`

## Constructors

### Constructor

> **new StringPrompt**(`parameters`): `StringPrompt`

Defined in: [src/prompt.ts:22](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/prompt.ts#L22)

#### Parameters

##### parameters

###### content

`string`

###### description?

`string`

###### name?

`string`

#### Returns

`StringPrompt`

#### Overrides

`Prompt.constructor`

## Properties

### \_\_savedRef

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

Defined in: [src/weaveObject.ts:72](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/weaveObject.ts#L72)

#### Inherited from

`Prompt.__savedRef`

***

### content

> **content**: `string`

Defined in: [src/prompt.ts:20](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/prompt.ts#L20)

## Accessors

### description

#### Get Signature

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

Defined in: [src/weaveObject.ts:99](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/weaveObject.ts#L99)

##### Returns

`string` | `undefined`

#### Inherited from

`Prompt.description`

***

### name

#### Get Signature

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

Defined in: [src/weaveObject.ts:95](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/weaveObject.ts#L95)

##### Returns

`string`

#### Inherited from

`Prompt.name`

## Methods

### format()

> **format**(`values?`): `string`

Defined in: [src/prompt.ts:27](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/prompt.ts#L27)

#### Parameters

##### values?

`Record`\<`string`, `any`> = `{}`

#### Returns

`string`

***

### saveAttrs()

> **saveAttrs**(): `object`

Defined in: [src/weaveObject.ts:76](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/weaveObject.ts#L76)

#### Returns

`object`

#### Inherited from

`Prompt.saveAttrs`

***

### get()

> `static` **get**(`client`, `uri`): `Promise`\<`StringPrompt`>

Defined in: [src/prompt.ts:31](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/prompt.ts#L31)

#### Parameters

##### client

[`WeaveClient`](../interfaces/weaveclient)

##### uri

`string`

#### Returns

`Promise`\<`StringPrompt`>
