curl --request GET \
--url https://api.pawa-ai.com/v1/agents/view \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "Agents retrieved successfully",
"data": [
{
"id": 0,
"agentReferenceId": "67cf5354-89f0-8001-b038-b2645377b214",
"name": "TutorAI",
"description": "TutorAI is an AI agent designed to assist students with their studies.",
"instruction": "Teaching students on subjects ranging from form one to form 4. Follow questions properly and do not answer any other questions apart from what you have been tasked to",
"status": "ACTIVE",
"createdAt": "2021-09-01T00:00:00.000Z",
"updatedAt": "2021-09-01T00:00:00.000Z",
"intents": [
"Be gentle",
"Be detailed"
],
"knowledgeBaseId": 159,
"tools": [
{
"type": "function",
"function": {
"name": "convert_usd_to_tsh",
"description": "Converts an amount in USD to Tanzanian Shillings.",
"strict": true,
"parameters": {
"type": "object",
"properties": {
"amount_usd": {
"description": "Amount in USD",
"type": "number"
}
},
"required": [
"amount_usd"
],
"additionalProperties": false
}
}
},
{
"type": "pawa_tool",
"pawa_tool": "web_search_tool"
}
]
}
]
}This endpoint used to retrieve all custom agents created in the Pawa AI Platform.
curl --request GET \
--url https://api.pawa-ai.com/v1/agents/view \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "Agents retrieved successfully",
"data": [
{
"id": 0,
"agentReferenceId": "67cf5354-89f0-8001-b038-b2645377b214",
"name": "TutorAI",
"description": "TutorAI is an AI agent designed to assist students with their studies.",
"instruction": "Teaching students on subjects ranging from form one to form 4. Follow questions properly and do not answer any other questions apart from what you have been tasked to",
"status": "ACTIVE",
"createdAt": "2021-09-01T00:00:00.000Z",
"updatedAt": "2021-09-01T00:00:00.000Z",
"intents": [
"Be gentle",
"Be detailed"
],
"knowledgeBaseId": 159,
"tools": [
{
"type": "function",
"function": {
"name": "convert_usd_to_tsh",
"description": "Converts an amount in USD to Tanzanian Shillings.",
"strict": true,
"parameters": {
"type": "object",
"properties": {
"amount_usd": {
"description": "Amount in USD",
"type": "number"
}
},
"required": [
"amount_usd"
],
"additionalProperties": false
}
}
},
{
"type": "pawa_tool",
"pawa_tool": "web_search_tool"
}
]
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Agents retrieved successfully
true
"Agents retrieved successfully"
Show child attributes
0
The unique reference ID of the agent
"67cf5354-89f0-8001-b038-b2645377b214"
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 one to form 4. Follow questions properly and do not answer any other questions apart from what you have been tasked to"
The status of the agent
"ACTIVE"
"2021-09-01T00:00:00.000Z"
"2021-09-01T00:00:00.000Z"
The list of intents, how the model should behave?
["Be gentle", "Be detailed"]The knowledge base ID to be used by the agent
159
Tools to provide to the model (as a JSON object list)
Show child attributes
function "function"
Show child attributes
Show child attributes
object "object"
Required parameter names
Allow additional properties
[
{
"type": "function",
"function": {
"name": "convert_usd_to_tsh",
"description": "Converts an amount in USD to Tanzanian Shillings.",
"strict": true,
"parameters": {
"type": "object",
"properties": {
"amount_usd": {
"description": "Amount in USD",
"type": "number"
}
},
"required": ["amount_usd"],
"additionalProperties": false
}
}
},
{
"type": "pawa_tool",
"pawa_tool": "web_search_tool"
}
]