Query
Start a conversation with an Agent
and receive its generated response, along with relevant retrieved data and attributions.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Agent ID of the agent to query
Query Parameters
Set to true
to fetch retrieval content and metadata, and then skip generation of the response.
Set to true
to include the text of the retrieved contents in the response. If false
, only metadata about the retrieved contents will be included, not content text. This parameter is ignored if retrievals_only
is true
, in which case content_text
will always be returned. Content text and other metadata can also be fetched separately using the /agents/{agent_id}/query/{message_id}/retrieval/info
endpoint.
Body
Request body for a POST /agents/{agent_id}/query
request
Response
Successful Response
Response body for POST /query