AskResult
Defined in: core/src/ask.ts:95
Properties
Section titled “Properties”answer
Section titled “answer”answer:
string
Defined in: core/src/ask.ts:98
The answer, or the text received before the call stopped.
campaign?
Section titled “campaign?”
optionalcampaign?:object
Defined in: core/src/ask.ts:105
The campaign the answer is about, when there is one.
id:
string
name:
string
url:
string
error?
Section titled “error?”
optionalerror?:string
Defined in: core/src/ask.ts:119
The edge’s error message, when it sent one.
followUps
Section titled “followUps”followUps:
string[]
Defined in: core/src/ask.ts:101
Suggested next questions. Empty when there are none.
homeCampaignId?
Section titled “homeCampaignId?”
optionalhomeCampaignId?:string
Defined in: core/src/ask.ts:111
The campaign the conversation is grounded in, which stays the same when
an answer recommends another campaign. Pin this, not campaign.id, to
continue the thread.
links:
AskLink[]
Defined in: core/src/ask.ts:99
ok:
boolean
Defined in: core/src/ask.ts:96
reason?
Section titled “reason?”
optionalreason?:AskFailureReason
Defined in: core/src/ask.ts:115
Set when ok is false.
session
Section titled “session”session:
string
Defined in: core/src/ask.ts:103
Send this back as session to continue the conversation. Empty when there is none.
status?
Section titled “status?”
optionalstatus?:number
Defined in: core/src/ask.ts:117
The HTTP status, when the edge answered.
truncated?
Section titled “truncated?”
optionaltruncated?:boolean
Defined in: core/src/ask.ts:113
The answer was cut off upstream. It is usable but may be incomplete.