curl --request POST \
--url https://api.anam.ai/v1/tools \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "search_knowledge_base",
"description": "Search the knowledge base for information about products and services",
"type": "SERVER_RAG",
"config": {
"parameters": {}
}
}
'{
"id": "0084f07b-6106-4cd8-be32-a66a64284b31",
"name": "search_knowledge_base",
"description": "Search the knowledge base for product information",
"type": "CLIENT",
"config": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"usageCount": 123
}Create a new tool for function calling in persona sessions
curl --request POST \
--url https://api.anam.ai/v1/tools \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "search_knowledge_base",
"description": "Search the knowledge base for information about products and services",
"type": "SERVER_RAG",
"config": {
"parameters": {}
}
}
'{
"id": "0084f07b-6106-4cd8-be32-a66a64284b31",
"name": "search_knowledge_base",
"description": "Search the knowledge base for product information",
"type": "CLIENT",
"config": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"usageCount": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique name for the tool. Must match pattern [a-zA-Z0-9_.-]+
1 - 64"search_knowledge_base"
Description of what the tool does. Used by the LLM to decide when to call it.
1 - 1024"Search the knowledge base for information about products and services"
Type of tool:
CLIENT, SERVER_RAG, SERVER_WEBHOOK, SYSTEM "SERVER_RAG"
Type-specific configuration for the tool
Show child attributes
Successfully created tool
Unique identifier for the tool
"0084f07b-6106-4cd8-be32-a66a64284b31"
Name of the tool
"search_knowledge_base"
Description of what the tool does
"Search the knowledge base for product information"
Type of tool
CLIENT, SERVER_RAG, SERVER_WEBHOOK, SYSTEM Type-specific configuration
When the tool was created
When the tool was last updated
Number of personas using this tool
Was this page helpful?