Backend API
Update an AI agent
cURL
curl --request PATCH \ --url https://api.wacht.dev/ai-agents/{agent_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "description": "<string>", "model": "<string>", "system_prompt": "<string>", "temperature": 1, "max_tokens": 123, "tools": [ "<string>" ], "knowledge_bases": [ "<string>" ], "is_active": true }'
{ "id": "<string>", "name": "Customer Support Agent", "description": "AI agent for handling customer support inquiries", "model": "gpt-4", "system_prompt": "<string>", "temperature": 0.7, "max_tokens": 1000, "tools": [ "<string>" ], "knowledge_bases": [ "<string>" ], "is_active": true, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
0 <= x <= 2