This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
SmartAssistant/files/custom/Espo/Modules/SmartAssistant/Resources/routes.json
T
chaim f84b2f1cef feat: add executeTool endpoint for direct plugin tool invocation
Adds POST /SmartAssistant/action/executeTool that accepts {tool, params, caseId}
and routes directly to the plugin tool handler via ActionExecutor. This allows
the AI Gateway to call plugin tools (like generate_direct_access_report) without
going through the conversation approval flow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 11:31:16 +00:00

99 lines
2.4 KiB
JSON

[
{
"route": "/SmartAssistant/action/status",
"method": "get",
"params": {
"controller": "SmartAssistant",
"action": "status"
}
},
{
"route": "/SmartAssistant/action/chat",
"method": "post",
"params": {
"controller": "SmartAssistant",
"action": "chat"
}
},
{
"route": "/SmartAssistant/action/execute",
"method": "post",
"params": {
"controller": "SmartAssistant",
"action": "execute"
}
},
{
"route": "/SmartAssistant/action/summary",
"method": "get",
"params": {
"controller": "SmartAssistant",
"action": "summary"
}
},
{
"route": "/SmartAssistant/action/alerts",
"method": "get",
"params": {
"controller": "SmartAssistant",
"action": "alerts"
}
},
{
"route": "/SmartAssistant/action/history",
"method": "get",
"params": {
"controller": "SmartAssistant",
"action": "history"
}
},
{
"route": "/SmartAssistant/action/conversations",
"method": "get",
"params": {
"controller": "SmartAssistant",
"action": "conversations"
}
},
{
"route": "/SmartAssistant/action/conversationMessages",
"method": "get",
"params": {
"controller": "SmartAssistant",
"action": "conversationMessages"
}
},
{
"route": "/SmartAssistant/action/searchHistory",
"method": "get",
"params": {
"controller": "SmartAssistant",
"action": "searchHistory"
}
},
{
"route": "/SmartAssistant/action/caseMemory",
"method": "get",
"params": {
"controller": "SmartAssistant",
"action": "caseMemory"
}
},
{
"route": "/SmartAssistant/action/saveMemory",
"method": "post",
"params": {
"controller": "SmartAssistant",
"action": "saveMemory"
}
},
{
"route": "/SmartAssistant/action/executeTool",
"method": "post",
"params": {
"controller": "SmartAssistant",
"action": "executeTool"
}
}
]