本文へスキップ
Sursa Developers

オブジェクト

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必須
  • querystring
  • collectionstring必須
  • sourcesarray of Source必須
  • table_queriesarray of TableQuery必須
  • datasetsarray of Dataset必須
  • chartsarray of ChartSpec必須
  • warningsarray of AnswerWarning必須
  • timingsTimings必須
  • provenancearray of NumberProvenance
  • emptystring

    指定できる値: no_hitsrestrictedguardrailno_data_for_period

  • verificationAnswerVerification
  • alt_periodsarray of AnswerAltPeriod

    items ≤ 6

  • drilldownarray of AnswerDrilldown

    items ≤ 20

  • restrictedRestrictedInfo
  • verified_onlyboolean
  • cachedboolean
  • out_of_scopeAnswerOutOfScope
  • attachmentsarray of Attachment
  • export_errorstring
  • toolsstring | null

    この回答でツールが使われた理由:request(明示的に求められた)、compare、compute、action(質問に基づく)、needs_calc(表に対する計算が必要)、summary(コレクションまたはドキュメントの概要)、mcp(組織が外部のMCPサーバーを接続している)。

    指定できる値: requestcomparecomputeactionneeds_calcsummarymcpnull

  • tool_callsarray of ToolCallInfo
  • calculationsarray of Calculation
  • pending_actionsarray of PendingAction
  • entitiesarray of AnswerEntity必須
  • followupsarray of Followup必須
  • conversation_idstring

    会話を指定したPOST /v1/chatのみ。

  • answer_idstring

    回答オブジェクトのID。

使用箇所

参照元

ChatDone