# AskOptions

Defined in: ask.ts:40

## Properties

### apiBase

> **apiBase**: `string`

Defined in: ask.ts:41

***

### apiBaseProvenance?

> `optional` **apiBaseProvenance?**: `"explicit"` \| `"key"`

Defined in: ask.ts:64

Where `apiBase` came from; see `FetchFragmentsOptions.apiBaseProvenance`. Defaults to "explicit".

***

### campaignId?

> `optional` **campaignId?**: `string`

Defined in: ask.ts:44

Pin the answer to one public campaign.

***

### fetchImpl?

> `optional` **fetchImpl?**: (`input`, `init?`) => `Promise`\<`Response`\>

Defined in: ask.ts:66

Test seam; defaults to the platform fetch.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch)

#### Parameters

##### input

`URL` \| `RequestInfo`

##### init?

`RequestInit`

#### Returns

`Promise`\<`Response`\>

***

### idleTimeoutMs?

> `optional` **idleTimeoutMs?**: `number`

Defined in: ask.ts:62

How long the call waits with no bytes from the edge, in milliseconds.
Default 30000. Each piece that arrives starts it again. `0` or
`Infinity` turns it off.

***

### onChunk?

> `optional` **onChunk?**: (`chunk`, `answer`) => `void`

Defined in: ask.ts:56

Called with each piece of the answer as it is written. Giving it makes
the request a stream. `answer` is the text received so far.

#### Parameters

##### chunk

`string`

##### answer

`string`

#### Returns

`void`

***

### organizationId?

> `optional` **organizationId?**: `string`

Defined in: ask.ts:46

Without a campaign, the brand's whole live roster answers. Needs a live key or a brand host.

***

### publishableKey?

> `optional` **publishableKey?**: `string`

Defined in: ask.ts:48

`st_pk_live_…`. Sent as `Authorization: Bearer <key>`.

***

### question

> **question**: `string`

Defined in: ask.ts:42

***

### session?

> `optional` **session?**: `string`

Defined in: ask.ts:50

The `session` from an earlier answer, to continue that conversation.

***

### signal?

> `optional` **signal?**: `AbortSignal`

Defined in: ask.ts:51
