Add component definition: djl

This commit is contained in:
gitea_admin 2026-03-11 14:27:20 +00:00
parent 2794e4bd3d
commit 84e4d16b7f

147
component.json Normal file
View File

@ -0,0 +1,147 @@
{
"component": {
"kind": "component",
"name": "djl",
"title": "Deep Java Library",
"description": "Infer Deep Learning models from message exchanges data using Deep Java Library (DJL).",
"deprecated": false,
"firstVersion": "3.3.0",
"label": "ai",
"javaType": "org.apache.camel.component.djl.DJLComponent",
"supportLevel": "Stable",
"groupId": "org.apache.camel",
"artifactId": "camel-djl",
"version": "4.10.2",
"scheme": "djl",
"extendsScheme": "",
"syntax": "djl:application",
"async": false,
"api": false,
"consumerOnly": false,
"producerOnly": true,
"lenientProperties": false,
"browsable": false,
"remote": false
},
"headers": {
"CamelDjlInput": {
"index": 0,
"kind": "header",
"displayName": "",
"group": "producer",
"label": "",
"required": false,
"javaType": "",
"deprecated": false,
"deprecationNote": "",
"autowired": false,
"secret": false,
"description": "The input data used for prediction",
"constantName": "org.apache.camel.component.djl.DJLConstants#INPUT"
},
"CamelDjlFileType": {
"index": 1,
"kind": "header",
"displayName": "",
"group": "producer",
"label": "",
"required": false,
"javaType": "",
"deprecated": false,
"deprecationNote": "",
"autowired": false,
"secret": false,
"description": "The file type of the message body data. It is used when the body is converted to bytes.",
"constantName": "org.apache.camel.component.djl.DJLConstants#FILE_TYPE"
}
},
"properties": {
"application": {
"index": 0,
"kind": "path",
"displayName": "Application",
"group": "producer",
"label": "",
"required": true,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"deprecationNote": "",
"autowired": false,
"secret": false,
"description": "Application name"
},
"artifactId": {
"index": 1,
"kind": "parameter",
"displayName": "Artifact Id",
"group": "producer",
"label": "",
"required": false,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"autowired": false,
"secret": false,
"description": "Model Artifact"
},
"model": {
"index": 2,
"kind": "parameter",
"displayName": "Model",
"group": "producer",
"label": "",
"required": false,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"autowired": false,
"secret": false,
"description": "Model"
},
"showProgress": {
"index": 3,
"kind": "parameter",
"displayName": "Show Progress",
"group": "producer",
"label": "",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"autowired": false,
"secret": false,
"defaultValue": false,
"description": "Show progress while loading zoo models. This parameter takes effect only with zoo models"
},
"translator": {
"index": 4,
"kind": "parameter",
"displayName": "Translator",
"group": "producer",
"label": "",
"required": false,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"autowired": false,
"secret": false,
"description": "Translator"
},
"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."
}
}
}