Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The name of the agent
"TutorAI"
The description about the agent
"TutorAI is an AI agent designed to assist students with their studies."
What should the agent do
"Teaching students on subjects ranging from form 0ne to form 4. Follow questions properly and do not answer any other questions apart from what you have been tasked to"
The list of intents, how the model should behave?
["Be gentle", "Be detailed"]
The name of the model to use.
Messages to send to the model
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is the current president of Tanzania?"
},
{
"type": "image_url",
"image_url": { "url": "https://example.com/image.png" }
}
]
}
Sampling temperature
Nucleus sampling (top-p)
Maximum number of tokens in the response
Penalty for repeated tokens
Penalty for new topic tokens
Random seed for reproducibility
Whether to stream the response
The list of agent IDs the main agent should use to respond
[2, 3, 4]
Previous messages in the conversation (as a JSON string)
[
{
"role": "user",
"content": [{ "type": "text", "text": "Habari yako?" }]
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Nzuri sana, asante. Wewe je?"
}
]
}
]
Optional response format specification
{
"type": "json_schema",
"json_schema": {
"name": "foo",
"strict": true,
"schema": {
"type": "object",
"properties": {
"answer": { "type": "string", "pattern": "^\\d+$" }
},
"required": ["answer"],
"additionalProperties": false
}
}
}