跳到主要内容
Sursa Developers

对象

AnswerWarning

附加在回答上的警告。kind 可扩展:遇到未知类型时显示通用消息。类型:
- chart_unavailable、chart_type_changed、chart_axis_categorical、tool_not_allowed、tool_failed、table_query_failed(回答的表格查询失败)、truncated。这些类型没有 reason。

- answer_mismatch_data:回答中某个月份旁的数字与该月份的图表数据不同(reason:period_value、period_missing、total_as_period、period_part);或该数字不在回答数据中(reason:number_not_in_data);或概览类回答提到了不在文档列表中且没有来源链接的文档(reason:document_not_in_list);或该数字在数据中,但货币不同(reason:currency_mismatch,附带字段 number、currency、currencies)。字段:text、expected、spans。

- answer_source_ambiguous:数据来自同一期间的多个相似表格,而问题并未要求合并它们(text 列出这些表格)。

- answer_no_data_basis:含月度数字的回答没有表格数据,因此这些数字未经核对。

- currency_missing:来自货币数据的数字没有货币,而数据中有多种货币(text、number、spans、currencies)。

- mixed_currency_sum:回答中的某个数字等于不同货币数值之和(text、number、spans、currencies)。

- access_limited:部分结果因用户的访问权限而被排除,回答可能不完整(没有数据字段)。

- fx_rate_stale:折算使用的汇率已超出其来源的时效阈值(rate_date、currencies)。

- fx_rate_missing:回答中的某个金额未被折算。reason 为 no_rate_on_date(在容差范围内没有该金额所在行日期的汇率:7 天,手动上传的汇率为 31 天)或 no_rate(该货币对完全没有汇率)。currencies 列出没有汇率的货币。text 是包含货币对和日期的英文备用文本,例如“RUB → USD on 2026-03-04, 2026-03-05”,多个货币对之间用“; ”分隔。

- restricted_unverified:关于受限主题的问题。未经相关性检查不显示摘录(没有数据字段)。

- enrichment_pending:问题的范围内有仍在处理中的文档,其字段和财务记录尚未就绪。reason 为 documents(关于金额的问题或基于表格的回答,合计可能不完整)或 document(关于某个特定文档的问题,该文档仍在处理中或无法处理)。pending 是正在处理的文档数量,card_ids 是其中用户可见的文档(最多 20 个)。failed 是无法处理的文档数量,failed_card_ids 是其中可见的文档(最多 20 个)。

- partial_coverage:资料汇总类问题或某一类型文档的列表。在范围内找到了 found 份文档,而回答中只有 shown < found 份,因此回答可能不完整。

- reconcile_unconfirmed:对于核对类问题,回答称“一致”,但未在两份不同的文档中找到该金额(text 是以回答语言写成的说明,包含两个来源中的金额)。

客户端根据 kind、reason 和数据字段,用界面语言生成面向用户的文本。access_limited、restricted_unverified 和 fx_rate_missing 的 text 以及 expected 是以回答语言或英文写成的备用文本。

字段

  • kindstring必填
  • reasonstring

    answer_mismatch_data:原因代码(period_value、period_missing、total_as_period、period_part、number_not_in_data、document_not_in_list、currency_mismatch)。chart_axis_categorical:unparsed_periods。tool_failed、table_query_failed、truncated:没有 reason。currency_missing、mixed_currency_sum:英文说明(备用文本;客户端根据 currencies 生成表述)。fx_rate_missing:no_rate_on_date(在容差范围内没有该行日期的汇率)或 no_rate(该货币对完全没有汇率)。

  • requestedstring
  • typestring
  • toolstring

    tool_failed、tool_not_allowed:工具的名称。

  • textstring

    警告所指的回答部分(answer_mismatch_data:回答中写的月份和数字)。对于 access_limited、restricted_unverified 和 fx_rate_missing,为备用文本(fx_rate_missing:没有汇率的货币对和日期)。

  • expectedstring

    数据中的实际情况(answer_mismatch_data:该月份的值和该值所在的月份,或合计值)。

  • spansarray of array of integer

    各部分在回答正文中的位置(UTF-16,与 JavaScript 字符串相同):数字和月份。

  • numberstring

    answer_mismatch_data:回答中写的数字。它与 period、other_period、values 和 rows 一起,构成用界面语言生成警告文本所需的数据。

  • periodstring

    answer_mismatch_data:回答中的月份(YYYY-MM)。

  • other_periodstring

    answer_mismatch_data:数值等于该数字的数据所在月份(YYYY-MM)。

  • valuesarray of number (double)

    answer_mismatch_data:该月份的数据值,或合计。

  • rowsinteger

    answer_mismatch_data、period_part:该月合计中相加的行数。

  • currencystring

    answer_mismatch_data、currency_mismatch:回答中所写数字的货币(ISO 4217 代码)。

  • currenciesarray of string

    数据的货币(ISO 4217 代码)。对于 currency_mismatch,是该值在数据中出现的货币;对于 currency_missing 和 mixed_currency_sum,是回答数据中货币数值的货币;对于 fx_rate_stale,是按过时汇率折算的货币;对于 fx_rate_missing,是没有汇率的货币。

  • rate_datestring (date)

    fx_rate_stale:过时汇率的日期(YYYY-MM-DD)。

  • pendinginteger

    enrichment_pending:问题范围内仍在处理中的文档数量。

  • card_idsarray of string

    enrichment_pending:这些文档中用户可见的卡片(最多 20 个)。

  • failedinteger

    enrichment_pending:问题范围内无法处理的文档数量。

  • failed_card_idsarray of string

    enrichment_pending:无法处理且用户可见的文档的卡片(最多 20 个)。

  • foundinteger

    partial_coverage:在问题范围内找到的该组文档的数量。

  • showninteger

    partial_coverage:找到的文档中出现在回答里的数量。

所属对象

AnswerResponseChatEventDataFeedItemQuestionPayload