ออบเจ็กต์
AnswerResponse
คำตอบของผู้ช่วย (POST /v1/ask POST /v1/chat แบบไม่สตรีม และอีเวนต์ done ของสตรีม) มีหลายรูปแบบ: คำตอบปกติ “ไม่มีเอกสาร” (empty: no_hits โดยไม่มี provenance) การปฏิเสธในหัวข้อที่จำกัด (empty: restricted พร้อม restricted) และการปฏิเสธตามเกณฑ์ป้องกัน (empty: guardrail พร้อม 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(ขออย่างชัดเจน)comparecomputeและaction(ตามคำถาม)needs_calc(ต้องคำนวณจากตาราง)summary(ภาพรวมของคอลเลกชันหรือเอกสาร) และmcp(องค์กรเชื่อมต่อเซิร์ฟเวอร์ MCP ภายนอกไว้)ค่าที่ใช้ได้:
requestcomparecomputeactionneeds_calcsummarymcpnulltool_callsarray of ToolCallInfocalculationsarray of Calculationpending_actionsarray of PendingActionconversation_idstringเฉพาะ
POST /v1/chatที่มีบทสนทนาanswer_idstringID ของออบเจ็กต์คำตอบ