Tools
create tool
Changed onCreate a new tool for function calling in persona sessions
post/v1/tools
Request
- Base URLhttps://api.anam.ai
- URLhttps://api.anam.ai/v1/tools
- AuthHTTP bearer
Request body
Example request
{
"name": "search_knowledge_base",
"description": "Search the knowledge base for information about products and services",
"type": "SERVER_RAG",
"config": {
"topK": 5,
"minScore": 0.5,
"maxContextTokens": 4000,
"documentFolderIds": [
"67d27a9f-0ce1-4432-848b-8ab2b97f024b"
]
}
}Response
Successfully created tool
Example response
{
"id": "00000000-0000-0000-0000-000000000000",
"name": "search_knowledge_base",
"description": "Search the knowledge base for product information"
}Changes
- info
added the non-success response with the status
- info
- info
added the new optional request property
//
- info