> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-3071-org-scoped-api-keys.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# StringPrompt

> TypeScript SDK リファレンス

定義元: [src/prompt.ts:18](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/prompt.ts#L18)

<div id="extends">
  ## 継承元
</div>

* `Prompt`

<div id="constructors">
  ## コンストラクタ
</div>

<div id="constructor">
  ### コンストラクター
</div>

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

定義元: [src/prompt.ts:21](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/prompt.ts#L21)

#### パラメーター

<div id="parameters">
  ##### パラメーター
</div>

`StringPromptParameters`

#### 戻り値

`StringPrompt`

<div id="overrides">
  #### オーバーライド
</div>

`Prompt.constructor`

<div id="properties">
  ## プロパティ
</div>

<div id="__savedref">
  ### \_\_savedRef
</div>

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

定義元: [src/weaveObject.ts:71](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L71)

<div id="inherited-from">
  #### 継承元
</div>

`Prompt.__savedRef`

***

<div id="content">
  ### content
</div>

> **content**: `string`

定義元: [src/prompt.ts:19](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/prompt.ts#L19)

<div id="accessors">
  ## アクセサー
</div>

<div id="description">
  ### description
</div>

<div id="get-signature">
  #### 取得シグネチャ
</div>

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

定義元: [src/weaveObject.ts:98](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L98)

<div id="returns">
  ##### 戻り値
</div>

`string` | `undefined`

<div id="inherited-from">
  #### 継承元
</div>

`Prompt.description`

***

<div id="name">
  ### 名
</div>

<div id="get-signature">
  #### 取得シグネチャ
</div>

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

定義元: [src/weaveObject.ts:94](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L94)

<div id="returns">
  ##### 戻り値
</div>

`string`

<div id="inherited-from">
  #### 継承元
</div>

`Prompt.name`

<div id="methods">
  ## メソッド
</div>

<div id="format">
  ### format()
</div>

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

定義元: [src/prompt.ts:26](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/prompt.ts#L26)

#### パラメーター

<div id="values">
  ##### values?
</div>

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

#### 戻り値

`string`

***

<div id="saveattrs">
  ### saveAttrs()
</div>

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

定義元: [src/weaveObject.ts:75](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L75)

#### 戻り値

`object`

<div id="inherited-from">
  #### 継承元
</div>

`Prompt.saveAttrs`

***

<div id="get">
  ### get()
</div>

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

定義元: [src/prompt.ts:30](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/prompt.ts#L30)

#### パラメーター

<div id="client">
  ##### client
</div>

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

<div id="uri">
  ##### uri
</div>

`string`

#### 戻り値

`Promise`\<`StringPrompt`>
