From a9481b42d10bc1d80ee1fe69163b6991f3bc7e85 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Wed, 11 Mar 2026 14:26:13 +0000 Subject: [PATCH] Add component definition: chatscript --- component.json | 117 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..68180ed --- /dev/null +++ b/component.json @@ -0,0 +1,117 @@ +{ + "component": { + "kind": "component", + "name": "chatscript", + "title": "ChatScript", + "description": "Chat with a ChatScript Server.", + "deprecated": false, + "firstVersion": "3.0.0", + "label": "ai,chat", + "javaType": "org.apache.camel.component.chatscript.ChatScriptComponent", + "supportLevel": "Stable", + "groupId": "org.apache.camel", + "artifactId": "camel-chatscript", + "version": "4.10.2", + "scheme": "chatscript", + "extendsScheme": "", + "syntax": "chatscript:host:port/botName", + "async": false, + "api": false, + "consumerOnly": false, + "producerOnly": true, + "lenientProperties": false, + "browsable": false, + "remote": true + }, + "properties": { + "host": { + "index": 0, + "kind": "path", + "displayName": "Host", + "group": "producer", + "label": "", + "required": true, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "Hostname or IP of the server on which CS server is running" + }, + "port": { + "index": 1, + "kind": "path", + "displayName": "Port", + "group": "producer", + "label": "", + "required": false, + "type": "integer", + "javaType": "int", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": 1024, + "description": "Port on which ChatScript is listening to" + }, + "botName": { + "index": 2, + "kind": "path", + "displayName": "Bot Name", + "group": "producer", + "label": "", + "required": true, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "Name of the Bot in CS to converse with" + }, + "chatUserName": { + "index": 3, + "kind": "parameter", + "displayName": "Chat User Name", + "group": "producer", + "label": "", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "description": "Username who initializes the CS conversation. To be set when chat is initialized from camel route" + }, + "resetChat": { + "index": 4, + "kind": "parameter", + "displayName": "Reset Chat", + "group": "producer", + "label": "", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "description": "Issues :reset command to start a new conversation everytime" + }, + "lazyStartProducer": { + "index": 5, + "kind": "parameter", + "displayName": "Lazy Start Producer", + "group": "producer (advanced)", + "label": "producer,advanced", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing." + } + } +} \ No newline at end of file