Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"CamelAwsBedrockCompletionReason": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The completion reason for streaming response", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#STREAMING_COMPLETION_REASON" },
"CamelAwsBedrockTokenCount": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Integer", "deprecated": false, "autowired": false, "secret": false, "description": "The number of tokens generated in streaming response", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#STREAMING_TOKEN_COUNT" },
"CamelAwsBedrockChunkCount": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Integer", "deprecated": false, "autowired": false, "secret": false, "description": "The number of chunks received in streaming response", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#STREAMING_CHUNK_COUNT" },
"CamelAwsBedrockConverseMessages": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "List<software.amazon.awssdk.services.bedrockruntime.model.Message>", "deprecated": false, "autowired": false, "secret": false, "description": "The conversation messages for Converse API", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#CONVERSE_MESSAGES" },
"CamelAwsBedrockConverseMessages": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "List<software.amazon.awssdk.services.bedrockruntime.model.Message>", "deprecated": false, "autowired": false, "secret": false, "description": "The conversation messages for Converse API. When not set, the body as text is sent as one user message.", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#CONVERSE_MESSAGES" },
"CamelAwsBedrockConverseSystem": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "List<software.amazon.awssdk.services.bedrockruntime.model.SystemContentBlock>", "deprecated": false, "autowired": false, "secret": false, "description": "The system prompts for Converse API", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#CONVERSE_SYSTEM" },
"CamelAwsBedrockConverseInferenceConfig": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "software.amazon.awssdk.services.bedrockruntime.model.InferenceConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The inference configuration for Converse API", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#CONVERSE_INFERENCE_CONFIG" },
"CamelAwsBedrockConverseToolConfig": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "software.amazon.awssdk.services.bedrockruntime.model.ToolConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The tool configuration for Converse API", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#CONVERSE_TOOL_CONFIG" },
Expand All @@ -72,15 +72,15 @@
"CamelAwsBedrockConverseOutputMessage": { "index": 14, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "software.amazon.awssdk.services.bedrockruntime.model.Message", "deprecated": false, "autowired": false, "secret": false, "description": "The output message from Converse API response (converse only)", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#CONVERSE_OUTPUT_MESSAGE" },
"CamelAwsBedrockGuardrailConfig": { "index": 15, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "software.amazon.awssdk.services.bedrockruntime.model.GuardrailConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The guardrail configuration to apply to the request. converseStream also takes a GuardrailStreamConfiguration", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#GUARDRAIL_CONFIG" },
"CamelAwsBedrockGuardrailIdentifier": { "index": 16, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The guardrail identifier to use for the ApplyGuardrail operation", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#GUARDRAIL_IDENTIFIER" },
"CamelAwsBedrockGuardrailContent": { "index": 17, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "List<software.amazon.awssdk.services.bedrockruntime.model.GuardrailContentBlock>", "deprecated": false, "autowired": false, "secret": false, "description": "The content blocks for ApplyGuardrail operation", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#GUARDRAIL_CONTENT" },
"CamelAwsBedrockGuardrailContent": { "index": 17, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "List<software.amazon.awssdk.services.bedrockruntime.model.GuardrailContentBlock>", "deprecated": false, "autowired": false, "secret": false, "description": "The content blocks for ApplyGuardrail operation. When not set, the body as text is checked.", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#GUARDRAIL_CONTENT" },
"CamelAwsBedrockGuardrailSource": { "index": 18, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The source type for ApplyGuardrail operation (INPUT or OUTPUT)", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#GUARDRAIL_SOURCE" },
"CamelAwsBedrockGuardrailOutput": { "index": 19, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "List<software.amazon.awssdk.services.bedrockruntime.model.GuardrailOutputContent>", "deprecated": false, "autowired": false, "secret": false, "description": "The output content of the ApplyGuardrail response", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#GUARDRAIL_OUTPUT" },
"CamelAwsBedrockGuardrailTrace": { "index": 20, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "software.amazon.awssdk.services.bedrockruntime.model.GuardrailTraceAssessment", "deprecated": false, "autowired": false, "secret": false, "description": "The trace information from guardrail evaluation", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#GUARDRAIL_TRACE" },
"CamelAwsBedrockGuardrailAssessments": { "index": 21, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "List<software.amazon.awssdk.services.bedrockruntime.model.GuardrailAssessment>", "deprecated": false, "autowired": false, "secret": false, "description": "The guardrail assessments from ApplyGuardrail response", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#GUARDRAIL_ASSESSMENTS" },
"CamelAwsBedrockGuardrailUsage": { "index": 22, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "software.amazon.awssdk.services.bedrockruntime.model.GuardrailUsage", "deprecated": false, "autowired": false, "secret": false, "description": "The guardrail usage metrics from ApplyGuardrail response", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#GUARDRAIL_USAGE" }
},
"bodyTypes": {
"producerIn": { "carriers": [ "text", "bytes", "stream", "file", "map" ], "byOption": [ { "option": "operation", "value": "converse", "carriers": [ "any" ] }, { "option": "operation", "value": "converseStream", "carriers": [ "any" ] }, { "option": "operation", "value": "applyGuardrail", "carriers": [ "any" ] } ], "description": "The request of the model as JSON text for the invoke operations, which also need the CamelAwsBedrockContentType and CamelAwsBedrockAcceptContentType headers. Bytes, a stream or a file are sent as they are, and a Map or a Jackson JsonNode is marshalled to JSON: marshal another POJO to JSON first. No body fails. converse, converseStream and applyGuardrail take their input from headers, such as CamelAwsBedrockConverseMessages. With pojoRequest=true an InvokeModelRequest of the AWS SDK: another body fails" },
"producerIn": { "carriers": [ "text", "bytes", "stream", "file", "map" ], "byOption": [ { "option": "operation", "value": "converse", "carriers": [ "text" ] }, { "option": "operation", "value": "converseStream", "carriers": [ "text" ] }, { "option": "operation", "value": "applyGuardrail", "carriers": [ "text" ] } ], "description": "The request of the model as JSON text for the invoke operations, which also need the CamelAwsBedrockContentType and CamelAwsBedrockAcceptContentType headers. Bytes, a stream or a file are sent as they are, and a Map or a Jackson JsonNode is marshalled to JSON: marshal another POJO to JSON first. No body fails. converse and converseStream take the messages of the CamelAwsBedrockConverseMessages header, or else the body as text as one user message; applyGuardrail takes the CamelAwsBedrockGuardrailContent header, or else the body as text. With pojoRequest=true an InvokeModelRequest of the AWS SDK: another body fails" },
"producerOut": { "carriers": [ "text", "list" ], "byOption": [ { "option": "operation", "value": "invokeTextModel", "carriers": [ "text", "pojo" ] }, { "option": "operation", "value": "invokeImageModel", "carriers": [ "pojo" ] }, { "option": "operation", "value": "invokeEmbeddingsModel", "carriers": [ "pojo" ], "javaType": "software.amazon.awssdk.services.bedrockruntime.model.InvokeModelResponse" }, { "option": "operation", "value": "converse", "carriers": [ "text" ], "javaType": "java.lang.String" }, { "option": "operation", "value": "applyGuardrail", "carriers": [ "text" ], "javaType": "java.lang.String" } ], "description": "The streaming operations and converseStream give the text, or a List of the chunks with streamOutputMode=chunks: an image or embedding model fails, as it does not stream. invokeTextModel gives the JSON response as text for the Amazon Titan models, and a Jackson JsonNode for the others: the response, or the generated text for Llama, Cohere and Claude 2. invokeImageModel gives a JsonNode array of the images as Base64 text, and invokeEmbeddingsModel the InvokeModelResponse of the AWS SDK. converse gives the answer as text, empty when the model asks for a tool, and applyGuardrail its action as text: NONE or GUARDRAIL_INTERVENED" }
},
"properties": {
Expand Down
Loading