オブジェクト
AnswerResponse
アシスタントの回答(POST /v1/ask、ストリーミングなしのPOST /v1/chat、ストリームのdoneイベント)。いくつかの形があります:通常の回答、「ドキュメントなし」(empty: no_hits。provenanceなし)、制限されたトピックでの回答の拒否(restrictedを含むempty: restricted)、ガードレールによる回答の拒否(guardrailを含むempty: guardrail。テキストは組織の標準の拒否メッセージ)。キャッシュされた回答にはcached: trueとcache_hit(完全な繰り返し、または類似の質問への回答)が付きます。検証済みのカードだけに基づく回答(VERIFIED_ONLY)にはverified_only: trueが付きます。
フィールド
answerstring必須question_idinteger必須querystringcollectionstring必須provenancearray of NumberProvenanceemptystring指定できる値:
no_hitsrestrictedguardrailno_data_for_periodbasisAnswerBasisverificationAnswerVerificationalt_periodsarray of AnswerAltPerioditems ≤ 6
drilldownarray of AnswerDrilldownitems ≤ 20
restrictedRestrictedInfoguardrailGuardrailVerdictverified_onlybooleancachedbooleancache_hitAnswerCacheHitout_of_scopeAnswerOutOfScopeattachmentsarray of Attachmentexport_errorstringtoolsstring | nullこの回答でツールが使われた理由:
request(明示的に求められた)、compare、compute、action(質問に基づく)、needs_calc(表に対する計算が必要)、summary(コレクションまたはドキュメントの概要)、mcp(組織が外部のMCPサーバーを接続している)。指定できる値:
requestcomparecomputeactionneeds_calcsummarymcpnulltool_callsarray of ToolCallInfocalculationsarray of Calculationpending_actionsarray of PendingActionconversation_idstring会話を指定した
POST /v1/chatのみ。answer_idstring回答オブジェクトのID。