跳转到主要内容
POST
POST /v1/interactions

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json

Create with either model or agent; output-only resource fields are absent.

agent
string | null
agent_config
object | null
background
boolean | null
continuation_token
string | null
environment
any
generation_config
object | null
input
labels
object | null
model
string | null
previous_interaction_id
string | null
response_format
any
safety_settings
object[]
service_tier
string | null
store
boolean | null
stream
boolean | null
system_instruction
string | null
tools
object[]
webhook_config
any

响应

Successful protocol response

id
string
必填
status
string
必填
agent
string | null
continuation_token
string | null
created
string | null
environment_id
string | null
errors
object[]
model
string | null
object
string | null
previous_interaction_id
string | null
service_tier
string | null
steps
object[]

Fields shared by native step variants; vendor-specific fields remain in rest.

updated
string | null
usage
object | null