Skip to main content
POST
जवाब बनाएँ

सर्वर टूल

/v1/responses सामान्य function tools और Gateway द्वारा प्रबंधित इन server tools को सपोर्ट करता है:
  • gateway:datetime
  • phaseo:web_search
  • phaseo:web_fetch
  • phaseo:advisor
  • phaseo:image_generation
  • phaseo:apply_patch

दिनांक और समय का उदाहरण

सर्वर टूल उपयोग होने पर usage में संबंधित usage.server_tool_use.* counters शामिल होते हैं।
  • gateway:datetime -> datetime_requests
  • phaseo:web_search -> web_search_requests, web_search_results, web_search_extra_results
  • phaseo:web_fetch -> web_fetch_requests
  • phaseo:advisor -> advisor_requests
  • phaseo:image_generation -> image_generation_requests
  • phaseo:apply_patch -> apply_patch_requests

स्ट्रीमिंग नोट

stream: true भी समर्थित है। Gateway-प्रबंधित server tools के लिए Phaseo upstream tool-call turn को materialize करके loop जारी रख सकता है और फिर synthetic stream दोबारा भेज सकता है।

प्राधिकरण

Authorization
string
header
आवश्यक

Bearer टोकन से प्रमाणीकरण

बॉडी

application/json
model
string
आवश्यक
input
आवश्यक
background
boolean
include
string[]
instructions
string
max_output_tokens
integer
आवश्यक सीमा: x >= 1
metadata
object
session_id
string

ऑब्ज़र्वेबिलिटी के लिए संबंधित अनुरोधों (जैसे बातचीत या एजेंट वर्कफ़्लो) को समूहित करने वाला विशिष्ट पहचानकर्ता।

Maximum string length: 256
parallel_tool_calls
boolean
previous_response_id
string
reasoning
object
service_tier
enum<string>
उपलब्ध विकल्प:
standard,
default,
fast,
ultrafast,
priority,
flex,
batch
store
boolean
stream
boolean
temperature
number
आवश्यक सीमा: 0 <= x <= 2
text
object
tool_choice

टूल चयन रणनीति। Phaseo सर्वर-टूल प्रकार स्वीकार किए जाते हैं और upstream फ़ंक्शन/टूल लक्ष्यों में बदले जाते हैं।

उपलब्ध विकल्प:
auto,
none,
required,
phaseo:datetime,
phaseo:web_search,
phaseo:web_fetch,
phaseo:subagent,
phaseo:fusion,
phaseo:search_models,
gateway:datetime,
gateway:web_search,
gateway:web_fetch
tools
object[]

मॉडल फ़ंक्शन कॉल और गेटवे सर्वर टूल के लिए टूल परिभाषाएँ। गेटवे के अंतर्निहित सर्वर टूल हैं gateway:datetime, gateway:web_search और gateway:web_fetch।

top_p
number
आवश्यक सीमा: 0 <= x <= 1
truncation
enum<string>
उपलब्ध विकल्प:
auto,
disabled
user
string
prompt_cache_key
string | null
safety_identifier
string | null
modalities
enum<string>[]
उपलब्ध विकल्प:
text,
image,
audio
image_config
object
provider_options
object

वैकल्पिक प्रदाता-विशिष्ट विकल्प।

usage
boolean
meta
boolean
echo_upstream_request
boolean
debug
object

गेटवे डिबग नियंत्रण। ये फ़्लैग कभी भी प्रदाता को फ़ॉरवर्ड नहीं किए जाते।

provider
object

गेटवे चयन के लिए प्रदाता रूटिंग प्राथमिकताएँ।

प्रतिक्रिया

जवाब

id
string
object
string
created
integer
model
string
provider
string
provider_id
string
nativeResponseId
string | null
status
enum<string>
उपलब्ध विकल्प:
completed,
failed,
incomplete
finish_reason
string | null
meta
object
cost_nanos
number
cost_cents
integer
currency
string
pricing_lines
object[]
output
object[]
output_items
object[]
content
object[]
role
string
stop_reason
string
type
string
usage
object
अंतिम संशोधन 2 अक्टूबर 2026