ऑब्जेक्ट
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।