Explorar o código

#5406 AI Agents revamp: content change tools

Aleksandr Trofimov hai 6 meses
pai
achega
fd0cc1268f
Modificáronse 1 ficheiros con 9 adicións e 3 borrados
  1. 9 3
      inc/classes/BxDolAIToolFactory.php

+ 9 - 3
inc/classes/BxDolAIToolFactory.php

@@ -47,12 +47,18 @@ class BxDolAIToolFactory extends BxDolFactory
             case 'content_get':
                 $o = BxDolAIToolContentGet::make();
                 break;
-            case 'content_change':
-                $o = BxDolAIToolContentChange::make();
-                break;
             case 'content_search':
                 $o = BxDolAIToolContentSearch::make();
                 break;
+            case 'content_add':
+                $o = BxDolAIToolContentAdd::make();
+                break;
+            case 'content_update':
+                $o = BxDolAIToolContentUpdate::make();
+                break;
+            case 'content_delete':
+                $o = BxDolAIToolContentDelete::make();
+                break;
             default:
                 bx_log('sys_agents', "Tool type {$a['type']} is not supported", BX_LOG_ERR);
                 throw new Exception("Tool type {$a['type']} is not supported");