From 6fe0e555f9425891127da5784e2df64f37f9bdbd Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Wed, 11 Mar 2026 14:30:48 +0000 Subject: [PATCH] Add component definition: kserve --- component.json | 163 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..a2c5f94 --- /dev/null +++ b/component.json @@ -0,0 +1,163 @@ +{ + "component": { + "kind": "component", + "name": "kserve", + "title": "KServe", + "description": "Provide access to AI model servers with the KServe standard to run inference with remote models", + "deprecated": false, + "firstVersion": "4.10.0", + "label": "ai", + "javaType": "org.apache.camel.component.kserve.KServeComponent", + "supportLevel": "Preview", + "groupId": "org.apache.camel", + "artifactId": "camel-kserve", + "version": "4.10.2", + "scheme": "kserve", + "extendsScheme": "", + "syntax": "kserve:api", + "async": false, + "api": false, + "consumerOnly": false, + "producerOnly": true, + "lenientProperties": false, + "browsable": false, + "remote": true + }, + "headers": { + "CamelKServeModelName": { + "index": 0, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The name of the model used for inference.", + "constantName": "org.apache.camel.component.kserve.KServeConstants#MODEL_NAME" + }, + "CamelKServeModelVersion": { + "index": 1, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The version of the model used for inference.", + "constantName": "org.apache.camel.component.kserve.KServeConstants#MODEL_VERSION" + } + }, + "properties": { + "api": { + "index": 0, + "kind": "path", + "displayName": "Api", + "group": "producer", + "label": "", + "required": true, + "type": "string", + "javaType": "java.lang.String", + "enum": [ + "infer", + "model/ready", + "model/metadata", + "server/ready", + "server/live", + "server/metadata" + ], + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The KServe API" + }, + "modelName": { + "index": 1, + "kind": "parameter", + "displayName": "Model Name", + "group": "common", + "label": "common", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "configurationClass": "org.apache.camel.component.kserve.KServeConfiguration", + "configurationField": "configuration", + "description": "The name of the model used for inference." + }, + "modelVersion": { + "index": 2, + "kind": "parameter", + "displayName": "Model Version", + "group": "common", + "label": "common", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "configurationClass": "org.apache.camel.component.kserve.KServeConfiguration", + "configurationField": "configuration", + "description": "The version of the model used for inference." + }, + "target": { + "index": 3, + "kind": "parameter", + "displayName": "Target", + "group": "common", + "label": "common", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": "localhost:8001", + "configurationClass": "org.apache.camel.component.kserve.KServeConfiguration", + "configurationField": "configuration", + "description": "The target URI of the client. See: https://grpc.github.io/grpc-java/javadoc/io/grpc/Grpc.html#newChannelBuilder%28java.lang.String,io.grpc.ChannelCredentials%29" + }, + "lazyStartProducer": { + "index": 4, + "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." + }, + "credentials": { + "index": 5, + "kind": "parameter", + "displayName": "Credentials", + "group": "security", + "label": "security", + "required": false, + "type": "object", + "javaType": "io.grpc.ChannelCredentials", + "deprecated": false, + "autowired": false, + "secret": false, + "configurationClass": "org.apache.camel.component.kserve.KServeConfiguration", + "configurationField": "configuration", + "description": "The credentials of the client." + } + } +} \ No newline at end of file