Agent - Query
Streaming
When streaming is enabled, the endpoint will emit events “answer” (answer of the model) and “endpoint_response” (full response of the endpoint)
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID of the agent
Body
This is the query you want to ask your agent.
ID of the conversation (If not provided a new conversation is created)
Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
The maximum number of tokens to generate in the chat completion.
Override agent model
gpt_3_5_turbo
, gpt_3_5_turbo_16k
, gpt_4
Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
(DEPRECATED in favor of systemPrompt and userPrompt) Set the prompt template for this query
(DEPRECATED in favor of systemPrompt and userPrompt) Set the prompt type for this query
raw
, customer_support
Enable streaming
Agent system prompt
Temperature of the model (min 0.0, max 1.0)
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.
Agent user prompt
ID of the participant that's sending the query (If not provided a new ID is created)
Was this page helpful?