You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/06/20 17:20:06 UTC

(camel) branch main updated: CAMEL-23806: Split AI component docs into focused sub-pages

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 936d0fd008ce CAMEL-23806: Split AI component docs into focused sub-pages
936d0fd008ce is described below

commit 936d0fd008cef0117326215e565274cce0f8797b
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Jun 20 19:20:00 2026 +0200

    CAMEL-23806: Split AI component docs into focused sub-pages
    
    Split overly long AI component documentation pages into focused sub-pages:
    
    - AWS Bedrock: Extract examples and supported models into separate pages
    - OpenAI: Extract MCP tool calling, embeddings/audio operations, and compatible providers into separate pages
    - IBM watsonx.ai: Extract examples into a separate page
    - LangChain4j Agent: Extract guardrails, MCP integration, and multimodal content into separate pages
    
    Co-Authored-By: Claude <no...@anthropic.com>
---
 .../camel-a2a/src/main/docs/a2a-component.adoc     | 1113 +------------
 .../camel-a2a/src/main/docs/a2a-consumer.adoc      |  743 +++++++++
 .../camel-a2a/src/main/docs/a2a-producer.adoc      |  377 +++++
 .../src/main/docs/docling-async-processing.adoc    |  401 +++++
 .../src/main/docs/docling-batch-processing.adoc    |  700 ++++++++
 .../src/main/docs/docling-component.adoc           | 1656 ++-----------------
 .../camel-docling/src/main/docs/docling-serve.adoc |  351 ++++
 .../src/main/docs/langchain4j-agent-component.adoc | 1397 +---------------
 .../main/docs/langchain4j-agent-guardrails.adoc    |  670 ++++++++
 .../src/main/docs/langchain4j-agent-mcp.adoc       |  346 ++++
 .../main/docs/langchain4j-agent-multimodal.adoc    |  295 ++++
 .../src/main/docs/openai-component.adoc            | 1067 +-----------
 .../camel-openai/src/main/docs/openai-mcp.adoc     |  528 ++++++
 .../src/main/docs/openai-operations.adoc           |  299 ++++
 .../src/main/docs/openai-providers.adoc            |  250 +++
 .../src/main/docs/aws-bedrock-component.adoc       | 1747 +-------------------
 ...ck-component.adoc => aws-bedrock-examples.adoc} |  891 +---------
 .../src/main/docs/aws-bedrock-models.adoc          |  604 +++++++
 .../src/main/docs/ibm-watsonx-ai-component.adoc    | 1567 +-----------------
 ...component.adoc => ibm-watsonx-ai-examples.adoc} |  397 +----
 docs/components/modules/others/nav.adoc            |   14 +
 .../modules/others/pages/a2a-consumer.adoc         |    1 +
 .../modules/others/pages/a2a-producer.adoc         |    1 +
 .../modules/others/pages/aws-bedrock-examples.adoc |    1 +
 .../modules/others/pages/aws-bedrock-models.adoc   |    1 +
 .../others/pages/docling-async-processing.adoc     |    1 +
 .../others/pages/docling-batch-processing.adoc     |    1 +
 .../modules/others/pages/docling-serve.adoc        |    1 +
 .../others/pages/ibm-watsonx-ai-examples.adoc      |    1 +
 .../others/pages/langchain4j-agent-guardrails.adoc |    1 +
 .../others/pages/langchain4j-agent-mcp.adoc        |    1 +
 .../others/pages/langchain4j-agent-multimodal.adoc |    1 +
 .../modules/others/pages/openai-mcp.adoc           |    1 +
 .../modules/others/pages/openai-operations.adoc    |    1 +
 .../modules/others/pages/openai-providers.adoc     |    1 +
 35 files changed, 5778 insertions(+), 9649 deletions(-)

diff --git a/components/camel-ai/camel-a2a/src/main/docs/a2a-component.adoc b/components/camel-ai/camel-a2a/src/main/docs/a2a-component.adoc
index 4515f9949323..83df5aa1b0f5 100644
--- a/components/camel-ai/camel-a2a/src/main/docs/a2a-component.adoc
+++ b/components/camel-ai/camel-a2a/src/main/docs/a2a-component.adoc
@@ -89,1117 +89,12 @@ include::partial$component-endpoint-options.adoc[]
 include::partial$component-endpoint-headers.adoc[]
 // component options: END
 
-== Consumer — Exposing an A2A Agent
+== Sub-Pages
 
-The consumer turns a Camel route into an A2A agent. It automatically:
+For more details on consumer and producer usage, see:
 
-- Serves the agent card at `GET /.well-known/agent-card.json`
-- Registers HTTP endpoints for A2A operations (REST routes, or a JSON-RPC dispatcher for supported methods)
-- Validates authentication on incoming requests (when configured)
-- Manages task state via an internal `A2ATaskStore`
-- Dispatches push notification webhooks when task state changes
-- Filters inbound `Camel*` and `org.apache.camel.*` headers (case-insensitive) from untrusted requests
-- Enforces `maxPayloadSize` on incoming request bodies (returns 413 when exceeded)
-
-The route's `setBody` output becomes the agent's response — the consumer handles all A2A protocol wrapping. The `dataFormat` parameter controls what the route receives as body: extracted text (`PAYLOAD`, default), the full `Message` object (`POJO`), or raw JSON (`RAW`).
-
-=== Basic Agent (Local Only)
-
-The simplest possible local A2A agent. Define your agent's capabilities in `agent-card.json`, disable operation auth for local-only use, and let the route handle business logic:
-
-[tabs]
-====
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: a2a:classpath:agent-card.json
-      parameters:
-        validateAuth: false
-      steps:
-        - log:
-            message: "Received: ${body}"
-        - setBody:
-            constant: "Hello from my agent!"
-----
-
-Java::
-+
-[source,java]
-----
-from("a2a:classpath:agent-card.json?validateAuth=false")
-    .log("Received: ${body}")
-    .setBody(constant("Hello from my agent!"));
-----
-====
-
-Do not use `validateAuth=false` for agents exposed to an untrusted network. See <<Authentication>> for authenticated operation serving.
-
-The agent card (`agent-card.json`) declares your agent's identity and capabilities:
-
-[source,json]
-----
-{
-  "protocolVersion": "1.0",
-  "name": "my-agent",
-  "description": "A simple Camel A2A agent",
-  "url": "http://localhost:8080",
-  "version": "1.0.0",
-  "provider": {
-    "name": "Example",
-    "url": "https://example.com"
-  },
-  "capabilities": {
-    "streaming": false,
-    "pushNotifications": false,
-    "extendedAgentCard": false
-  },
-  "supportedInterfaces": [
-    {
-      "url": "http://localhost:8080",
-      "protocolBinding": "HTTP+JSON",
-      "protocolVersion": "1.0"
-    }
-  ],
-  "defaultInputModes": ["text/plain"],
-  "defaultOutputModes": ["text/plain"],
-  "skills": [
-    {
-      "id": "greet",
-      "name": "Greeting",
-      "description": "Returns a greeting message",
-      "tags": ["greeting"],
-      "examples": ["Say hello to Ada"],
-      "inputModes": ["text/plain"],
-      "outputModes": ["text/plain"]
-    }
-  ]
-}
-----
-
-The component supports the `HTTP+JSON` and `JSONRPC` protocol bindings. The legacy aliases `rest` and `jsonrpc` are also accepted and normalized to the v1.0 binding names. The `protocolVersion`, `defaultInputModes`, and `defaultOutputModes` fields are part of the A2A v1.0 card shape.
-
-NOTE: The `AgentCard` Java model can deserialize A2A v1.0 fields such as `defaultInputModes` and `defaultOutputModes`, and it also stores unknown JSON properties. URI parameter overrides are limited to `name`, `description`, and `version`; the endpoint resolver preserves card metadata and unknown extension properties from file and bean cards, supplies preview defaults for plain-name routes, and rejects unsupported protocol bindings.
-
-=== Card from Parameters (Local Only)
-
-For simple or test agents, the card identity fields can be built from URI parameters - no JSON file needed. Because parameter-built cards do not include security schemes, these local-only examples set `validateAuth=false`:
-
-[tabs]
-====
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: >-
-        a2a:weather-agent
-        ?name=Weather Agent
-        &description=Provides weather forecasts
-        &version=1.0.0
-        &validateAuth=false
-      steps:
-        - bean:
-            ref: weatherService
-----
-
-Java::
-+
-[source,java]
-----
-from("a2a:my-agent?name=My Agent&description=A simple agent&version=1.0.0&validateAuth=false")
-    .setBody(constant("Response from parameter-configured agent"));
-----
-====
-
-The component generates the `/.well-known/agent-card.json` response dynamically from the parameters. URI parameters only cover the agent identity fields above; use an agent card file or an `agentCard` bean for capabilities, skills, security schemes, supported interfaces, and other card metadata.
-
-=== JSON-RPC Protocol Binding
-
-By default, the consumer uses the REST binding (HTTP+JSON with colon-notation paths like `/message:send`). To use JSON-RPC 2.0 (single `POST /` endpoint), set `protocolBinding` to `JSONRPC`. The legacy aliases `rest` and `jsonrpc` are also accepted.
-
-[source,yaml]
-----
-- route:
-    from:
-      uri: a2a:classpath:agent-card.json
-      parameters:
-        protocolBinding: JSONRPC
-        validateAuth: false
-      steps:
-        - setBody:
-            constant: "JSON-RPC response"
-----
-
-This example is local-only because it disables operation auth. Keep `validateAuth=true` and configure a card security scheme for network-exposed agents.
-
-The REST binding exposes separate HTTP routes for the operation-serving methods listed in <<Consumer REST API Paths>>. The JSON-RPC binding exposes a single dispatcher and handles `SendMessage`, `SendStreamingMessage`, `GetTask`, `ListTasks`, `CancelTask`, `SubscribeToTask`, and the push notification config operations. Extended agent cards are outside the Preview scope for this first release.
-
-REST requests and responses use `application/a2a+json`. JSON-RPC requests and responses use `application/json`. Streaming operations produce `text/event-stream`.
-
-==== Vert.x Colon-in-Path Issue
-
-The A2A REST protocol uses Google's Custom Method convention with colons in paths (e.g., `/message:send`, `/message:stream`, `/tasks/\{id}:cancel`). Vert.x's router interprets the colon (`:`) as a path parameter delimiter, causing route collisions:
-
-* `/message:send` and `/message:stream` both match the pattern `/message\{param}` — whichever is registered first captures ALL requests
-* `/tasks/\{taskId}:cancel` and `/tasks/\{taskId}:subscribe` can collide with `/tasks/\{taskId}`
-
-This means operation serving is not reliable with REST binding on Vert.x/platform-http. For example, `POST /message:stream` can be handled by the `SendMessage` route instead of the streaming route.
-
-*Workaround:* Use `protocolBinding=JSONRPC` for agents running on Vert.x (the default `platform-http`). Alternatively, use `httpServerComponent=jetty` or `httpServerComponent=undertow`; their routers treat colons as literal characters.
-
-=== Authentication
-
-The component supports OAuth 2.0, OpenID Connect, API key, and HTTP bearer security schemes.
-OAuth 2.0 and OpenID Connect use the `oauthProfile` option and the `camel-oauth` SPI; HTTP bearer can use either an OAuth profile or the static `bearerToken` option.
-
-[IMPORTANT]
-====
-When `validateAuth=true`, the resolved agent card must declare at least one security scheme. If the card declares no schemes, the consumer rejects every request with HTTP 401 (fail closed). Cards built purely from URI parameters contain no security schemes, so combine `validateAuth=true` with a card file or `agentCard` bean that declares the scheme, as shown in the examples below.
-====
-
-[WARNING]
-====
-`validateAuth` defaults to `true`. The well-known agent card remains public, but all A2A operation endpoints require authentication by default. Set `validateAuth=false` only for deployments that intentionally expose unauthenticated A2A operation serving; in that mode the in-memory task store is open/single-tenant and does not provide per-user isolation.
-====
-
-NOTE: The component scopes built-in task and push-notification operations to the authenticated user that created the task. Tenant routing and tenant-aware authorization policy are outside the component scope; implement those rules in the Camel route or in deployment-specific infrastructure.
-
-`securityRequirements` follows A2A v1.0 semantics: multiple requirement objects are alternatives (OR), while multiple schemes inside one requirement must all be satisfied together (AND). The `list` array contains required scopes. The legacy A2A draft field `security` is accepted on input and converted to `securityRequirements`; new cards should use `securityRequirements`.
-
-==== OAuth / OIDC Authentication
-
-Validate incoming bearer tokens via the `camel-oauth` SPI. When an `oauthProfile` is configured, the consumer validates JWT signatures (via JWKS), expiry, issuer, and audience — or uses RFC 7662 token introspection for opaque tokens. Requires `camel-oauth` on the classpath.
-
-[source,yaml]
-----
-- route:
-    from:
-      uri: a2a:classpath:agent-card.json
-      parameters:
-        oauthProfile: my-agent
-        validateAuth: true
-      steps:
-        - setBody:
-            constant: "Authenticated response"
-----
-
-Configure the OIDC provider in application properties (these properties are owned by the `camel-oauth` component — see its documentation for the canonical format):
-
-[source,properties]
-----
-camel.oauth.my-agent.client-id=my-agent-client
-camel.oauth.my-agent.client-secret=my-secret
-camel.oauth.my-agent.token-endpoint=http://keycloak:8180/realms/my-realm/protocol/openid-connect/token
-----
-
-The agent card must declare the security scheme:
-
-[source,json]
-----
-{
-  "securitySchemes": {
-    "oidc": {
-      "openIdConnectSecurityScheme": {
-        "openIdConnectUrl": "http://keycloak:8180/realms/my-realm/.well-known/openid-configuration"
-      }
-    }
-  },
-  "securityRequirements": [
-    {
-      "schemes": {
-        "oidc": {
-          "list": []
-        }
-      }
-    }
-  ]
-}
-----
-
-When authentication succeeds, the `CamelA2AUserProfile` exchange property is populated with a `Map<String, Object>` containing the authenticated user's profile (subject, issuer, scopes, claims). When using OAuth/OIDC, the full `OAuthTokenValidationResult` is also available as the `CamelOAuthTokenValidationResult` exchange property.
-
-==== API Key Authentication
-
-The `apiKeyHeader` parameter controls which HTTP header carries the API key. It defaults to `Authorization`. A common override is `X-API-Key`:
-
-[source,yaml]
-----
-- route:
-    from:
-      uri: a2a:classpath:agent-card.json
-      parameters:
-        validateAuth: true
-        apiKey: "{{my.api.key}}"
-        apiKeyHeader: X-API-Key      # default is Authorization
-      steps:
-        - setBody:
-            constant: "API key protected response"
-----
-
-The agent card must declare an `apiKey` security scheme:
-
-[source,json]
-----
-{
-  "securitySchemes": {
-    "apikey": {
-      "apiKeySecurityScheme": {
-        "location": "header",
-        "name": "X-API-Key"
-      }
-    }
-  },
-  "securityRequirements": [
-    {
-      "schemes": {
-        "apikey": {
-          "list": []
-        }
-      }
-    }
-  ]
-}
-----
-
-When the scheme declares `location=header` and `name`, that header name takes precedence over `apiKeyHeader`. The component also supports `location=query` and `location=cookie` for API key schemes.
-
-==== Bearer Token
-
-[source,yaml]
-----
-- route:
-    from:
-      uri: a2a:classpath:agent-card.json
-      parameters:
-        bearerToken: "{{my.token}}"
-        validateAuth: true
-      steps:
-        - setBody:
-            constant: "Bearer token protected response"
-----
-
-The agent card must declare an `http` bearer security scheme:
-
-[source,json]
-----
-{
-  "securitySchemes": {
-    "bearer": {
-      "httpAuthSecurityScheme": {
-        "scheme": "bearer"
-      }
-    }
-  },
-  "securityRequirements": [
-    {
-      "schemes": {
-        "bearer": {
-          "list": []
-        }
-      }
-    }
-  ]
-}
-----
-
-NOTE: The agent card endpoint (`GET /.well-known/agent-card.json`) is always public — clients need it for discovery before they can authenticate.
-
-=== SSE Streaming with `${a2a:emit()}`
-
-Agents can emit progressive status updates during processing using the `${a2a:emit()}` Simple language function. Clients receive these as Server-Sent Events (SSE).
-
-For `SendStreamingMessage` and `SubscribeToTask`, the agent card must explicitly set `capabilities.streaming=true`. If the `capabilities` object is missing, or `streaming` is omitted or `false`, the consumer returns `UnsupportedOperationError` (HTTP 405 for REST, JSON-RPC `-32004` for JSON-RPC).
-
-[tabs]
-====
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: a2a:classpath:agent-card.json
-      parameters:
-        protocolBinding: JSONRPC
-        httpServerComponent: undertow
-      steps:
-        - script:
-            simple: "${a2a:emit('Connecting to database...')}"
-        - delay:
-            constant: 2000
-        - script:
-            simple: "${a2a:emit('Processing 1000 records...')}"
-        - delay:
-            constant: 3000
-        - script:
-            simple: "${a2a:emit('Analysis complete!')}"
-        - setBody:
-            constant: "Final analysis results: ..."
-----
-
-Java::
-+
-[source,java]
-----
-import org.apache.camel.component.a2a.A2AProgress;
-
-from("a2a:classpath:agent-card.json?httpServerComponent=undertow")
-    .process(exchange -> {
-        A2AProgress.emit(exchange, "Connecting...");
-        //connect to the external service
-        A2AProgress.emit(exchange, "Processing...");
-        //process data
-        exchange.getMessage().setBody("Here is the final answer.");
-    });
-----
-====
-
-Each `${a2a:emit('message')}` emits an SSE status event with `TASK_STATE_WORKING` state. The final `setBody` is automatically delivered as the completed response.
-
-You can also emit with an explicit state:
-
-[source,yaml]
-----
-- script:
-    simple: "${a2a:emit(INPUT_REQUIRED, 'Please provide your address')}"
-----
-
-NOTE: Use `script` EIP (not `setBody`) for `${a2a:emit()}` calls — `script` evaluates the expression for its side effect without changing the message body. Use `setBody` only for the final response.
-
-=== Scoped progress updates with `a2aSubTask`
-
-Camel routes can group related work with the `a2aSubTask` EIP and emit progress updates before, after, or when the grouped steps fail.
-This is a regular Camel route step, not a YAML-only extension, and it can be used from Camel's model-based DSLs when `camel-a2a` is on the classpath.
-The `emitBefore`, `emitAfter`, and `emitOnError` fields are optional and are evaluated as Simple expressions against the current Exchange.
-The nested `steps` behave like normal Camel route steps: in YAML they are configured under `steps`, and in Java DSL they are added after `.a2aSubTask()` until `.end()`.
-If the nested steps fail, `emitOnError` can access the original exception, for example with `$\{exception.message}`, and the original exception continues to propagate through the route.
-Failures while evaluating the `emitBefore`, `emitAfter`, or `emitOnError` Simple expressions are route failures.
-Failures while storing or notifying the resulting A2A progress event are best-effort: they are logged at debug level and do not stop nested work, fail an otherwise successful exchange, or replace the original nested-step exception.
-By default, emitting progress outside an active A2A task context is a no-op.
-Set `failIfNoTaskContext=true` when a route should fail instead if the current Exchange does not carry an active A2A task.
-An active task context is normally created by an A2A consumer while it is processing a task.
-Use stable `id` values on long-lived sub-tasks so route tracing and route-structure views keep stable node names.
-
-[source,yaml]
-----
-- route:
-    from:
-      uri: a2a:classpath:agent-card.json
-      parameters:
-        protocolBinding: JSONRPC
-        httpServerComponent: undertow
-        validateAuth: false
-      steps:
-        - a2aSubTask:
-            id: search-docs-progress
-            emitBefore: "Searching docs..."
-            emitAfter: "Docs found: ${body.size()}"
-            emitOnError: "Error searching docs: ${exception.message}"
-            failIfNoTaskContext: true
-            steps:
-              - to:
-                  uri: "elasticsearch:docs?operation=Search"
-        - a2aSubTask:
-            id: draft-answer-progress
-            emitBefore: "Drafting answer..."
-            emitAfter: "Answer drafted: ${body}"
-            emitOnError: "Error drafting answer: ${exception.message}"
-            steps:
-              - bean:
-                  ref: answerDraftingService
-                  method: draft
-        - setBody:
-            simple: "Final answer: ${body}"
-----
-
-The route examples in this section are local-only because they disable operation auth. Keep `validateAuth=true` and configure a card security scheme for network-exposed agents.
-
-The same route step is also available from Java DSL:
-
-[source,java]
-----
-from("a2a:classpath:agent-card.json?protocolBinding=JSONRPC&httpServerComponent=undertow&validateAuth=false")
-    .a2aSubTask()
-        .id("search-docs-progress")
-        .emitBefore("Searching docs...")
-        .emitAfter("Docs found: ${body.size()}")
-        .emitOnError("Error searching docs: ${exception.message}")
-        .failIfNoTaskContext(true)
-        .to("elasticsearch:docs?operation=Search")
-    .end();
-----
-
-For advanced use cases, `A2AProgress` also supports emitting structured artifacts and intermediate messages:
-
-._Java-only: emitting structured artifacts and intermediate messages with A2AProgress_
-[source,java]
-----
-// Emit a structured artifact (e.g., a generated file)
-Artifact artifact = Artifact.builder()
-    .artifactId("report-1")
-    .name("Analysis Report")
-    .parts(List.of(new TextPart("Report content...")))
-    .build();
-A2AProgress.emitArtifact(exchange, artifact, false, true);  // append=false, lastChunk=true
-
-// Emit an intermediate agent message (not a status update)
-Message msg = Message.builder()
-    .role(Message.Role.ROLE_AGENT)
-    .parts(List.of(new TextPart("Intermediate finding...")))
-    .build();
-A2AProgress.emitMessage(exchange, msg);
-----
-
-The consumer supports two SSE streaming patterns:
-
-* *`SendStreamingMessage`* — The stream starts with the submitted `Task`, followed by progress events from `A2AProgress` or `${a2a:emit()}`. When the route completes, the body is emitted as the final message.
-* *`SubscribeToTask`* — Clients subscribe via `POST /tasks/\{id}:subscribe` to receive real-time SSE updates for an existing non-terminal task. The component uses an Event-to-Stream Bridge (`QueueStreamEmitter` + `SseQueueInputStream`) with heartbeat comments to keep the connection alive. The stream sends the current `Task` first and ends when the task later reaches a terminal state. Subscribing to an already-terminal task returns `UnsupportedOperationError`.
-
-[NOTE]
-====
-*HTTP Server Component for Streaming*
-
-Real-time SSE streaming works with all tested HTTP server components: Vert.x/platform-http, Undertow, and Jetty.
-====
-
-SSE streaming parameters:
-
-* `sseHeartbeatInterval` (default 15,000 ms / 15 seconds) — interval for SSE keep-alive heartbeat comments (`:` lines) sent to prevent proxies from closing idle connections. Independent from `asyncTimeout`.
-* `sseQueueCapacity` (default 1,000) — maximum SSE events buffered per streaming connection. When the queue is full, new events are dropped with a warning log. Prevents unbounded memory growth from slow clients.
-
-=== Async Tasks with `returnImmediately`
-
-For long-running operations, enable `returnImmediately` to return a `SUBMITTED` task immediately. The route processes in the background, and clients poll with `GetTask`:
-
-[source,yaml]
-----
-- route:
-    from:
-      uri: a2a:classpath:agent-card.json
-      parameters:
-        returnImmediately: true
-        asyncTimeout: 30000          # default is 300000 (5 minutes)
-      steps:
-        - delay:
-            constant: 10000
-        - setBody:
-            constant: "Long computation result"
-----
-
-The `asyncTimeout` parameter (default: 300,000 ms / 5 minutes) controls how long the background processing can run before the task is marked `FAILED`.
-
-The consumer manages the task lifecycle automatically: `SUBMITTED` → `WORKING` → `COMPLETED` (or `FAILED` on error / timeout).
-
-`returnImmediately` resolution priority (highest wins):
-
-1. Per-request: `configuration.returnImmediately` in the `SendMessageRequest` body
-2. Per-request: `configuration.blocking=false` in the `SendMessageRequest` body (typed inverse of immediate return)
-3. Per-exchange: `CamelA2AReturnImmediately` header
-4. Endpoint config: `returnImmediately` URI parameter
-
-`SendMessageRequest.configuration` is modeled as `SendMessageConfiguration`. The consumer interprets `returnImmediately`, `blocking`, and `historyLength`; unknown fields are retained for protocol extensions and future A2A options. `configuration.historyLength` limits the task history returned by synchronous `SendMessage` task responses.
-
-NOTE: The REST consumer rejects `returnImmediately` for streaming operations (`SendStreamingMessage`) with 400 Bad Request.
-
-=== Push Notifications
-
-Agents that use `returnImmediately` can deliver updates via webhooks. Clients register a webhook URL via `CreateTaskPushNotificationConfig`, and the component's built-in `PushNotificationDispatcher` sends status updates to registered URLs.
-
-The agent card should declare push notification support so clients can discover the feature:
-
-[source,json]
-----
-{
-  "capabilities": {
-    "pushNotifications": true
-  }
-}
-----
-
-Progress updates emitted via `${a2a:emit()}` or `A2AProgress.emit()` are automatically dispatched to all registered webhooks.
-
-Push notification dispatch features:
-
-* *Parallel dispatch* — multiple webhooks per task are notified concurrently via `CompletableFuture`
-* *Auth headers* — `AuthenticationInfo` from the push config is sent as `Authorization: <scheme> <credentials>`
-* *Retry with exponential backoff* — configurable via `pushRetryAttempts` (default 3) and `pushRetryBackoffMs` (default 1s). Backoff formula: `delay × 2^attempt`. Only retries on 5xx/IOException — client errors (4xx) are not retried
-* *410 Gone auto-cleanup* — webhooks returning HTTP 410 are automatically deregistered
-* *SSRF protection* — webhook URLs are validated at registration time (blocks private IPs, loopback, link-local, wildcard, and cloud metadata addresses). Non-loopback webhook URLs must use HTTPS. Set `allowLocalWebhookUrls=true` to permit loopback URLs (plain HTTP allowed) for local development only
-
-=== Capacity Limiting
-
-Control concurrent task processing and queue overflow:
-
-[source,yaml]
-----
-- route:
-    from:
-      uri: a2a:classpath:agent-card.json
-      parameters:
-        maxConcurrentTasks: 10
-        taskQueueSize: 50
-      steps:
-        - setBody:
-            constant: "Processing..."
-----
-
-[cols="1,1,3"]
-|===
-| Parameter | Default | Description
-
-| `maxConcurrentTasks`
-| `0` (unlimited)
-| Maximum concurrent tasks. A shared semaphore governs all processing paths (sync, async, streaming).
-
-| `taskQueueSize`
-| `0` (no queue)
-| Pending queue capacity for async requests when all slots are occupied. Synchronous and streaming requests cannot be queued — they are rejected immediately.
-|===
-
-Behavior by processing path:
-
-* *Synchronous* (`returnImmediately=false`): if no permit, returns `ServerBusyError` (HTTP 429)
-* *Asynchronous* (`returnImmediately=true`): if no permit and queue has space, task queues as `SUBMITTED`; otherwise HTTP 429
-* *Streaming* (`SendStreamingMessage`): same as synchronous — rejects immediately
-
-The error response follows the A2A error model: REST returns HTTP 429 with `ServerBusyError`; JSON-RPC returns code `-32000` in the JSON-RPC error envelope.
-
-On shutdown, queued tasks are marked `FAILED` and subscribers are notified.
-
-=== Payload Size Limits
-
-The consumer enforces `maxPayloadSize` (default 6,291,456 bytes / 6 MiB) on incoming request bodies. Requests exceeding this limit receive HTTP 413 (REST) or a JSON-RPC error.
-
-[source,yaml]
-----
-- route:
-    from:
-      uri: a2a:classpath:agent-card.json
-      parameters:
-        maxPayloadSize: 10485760
-----
-
-=== CORS Support
-
-To enable CORS (required when browsers call your agent directly), set the REST configuration:
-
-[source,properties]
-----
-camel.rest.enableCors=true
-----
-
-The consumer automatically adds `Access-Control-*` headers (including A2A-specific headers like `A2A-Version` and `A2A-Extensions`) and registers OPTIONS preflight handlers for all A2A paths.
-
-=== A2A Extensions
-
-The agent card can advertise protocol extensions in `capabilities.extensions`. For protected operation routes, clients can request extensions with the `A2A-Extensions` HTTP header as a comma-separated list of extension URIs.
-
-The consumer validates requested extensions against the resolved agent card. If any requested URI is not advertised, or if a card extension marked `required=true` is not requested, the request fails before route processing with `UnsupportedExtensionError`. Accepted extension URIs are exposed to the route as the `CamelA2AExtensions` header and exchange property, and are echoed in the `A2A-Extensions` response header.
-
-Routes can branch directly on `CamelA2AExtensions`. For reusable behavior, register one or more `org.apache.camel.component.a2a.extension.A2AExtensionHandler` beans in the Camel registry. A handler is matched by extension URI and is invoked before and after route processing when that extension is negotiated. The handler receives the full `AgentExtension` declaration from the agent card, including `params`.
-
-=== Consumer REST API Paths
-
-When using the default REST protocol binding, the consumer registers these HTTP endpoints:
-
-[cols="1,2,2"]
-|===
-| Method | Path | Operation
-
-| `GET`
-| `/.well-known/agent-card.json`
-| Agent card discovery (always public)
-
-| `POST`
-| `/message:send`
-| SendMessage
-
-| `POST`
-| `/message:stream`
-| SendStreamingMessage (SSE response)
-
-| `GET`
-| `/tasks`
-| ListTasks
-
-| `GET`
-| `/tasks/\{taskId}`
-| GetTask
-
-| `POST`
-| `/tasks/\{taskId}:cancel`
-| CancelTask
-
-| `POST`
-| `/tasks/\{taskId}:subscribe`
-| SubscribeToTask (SSE response)
-
-| `POST`
-| `/tasks/\{taskId}/pushNotificationConfigs`
-| CreateTaskPushNotificationConfig
-
-| `GET`
-| `/tasks/\{taskId}/pushNotificationConfigs`
-| ListTaskPushNotificationConfigs
-
-| `GET`
-| `/tasks/\{taskId}/pushNotificationConfigs/\{configId}`
-| GetTaskPushNotificationConfig
-
-| `DELETE`
-| `/tasks/\{taskId}/pushNotificationConfigs/\{configId}`
-| DeleteTaskPushNotificationConfig
-|===
-
-All paths are prefixed with `basePath` if configured. When using JSON-RPC binding, a single `POST /` endpoint dispatches based on the JSON-RPC `method` field.
-
-The built-in `ListTasks` consumer applies `contextId`, `status`, `statusTimestampAfter`, `pageSize`, `pageToken`, `includeArtifacts`, and `historyLength`. `pageSize` defaults to `50` and is capped at `100`. `pageToken` values returned by the consumer are opaque cursor tokens containing a snapshot of the filtered task IDs for that listing. Clients must send the token back unchanged with the same filters; numeric offsets are rejected.
-
-=== Consumer Error Responses
-
-REST binding responses use the A2A v1.0 error wrapper with an `error` object. The `ErrorInfo.reason` detail maps back to these component error names:
-
-[cols="2,1,2"]
-|===
-| Condition | HTTP status | Error code
-
-| Unsupported `A2A-Version` request header
-| `400`
-| `VersionNotSupportedError`
-
-| Authentication validation failure
-| `401`
-| `AuthenticationError`
-
-| Authenticated caller is not authorized for the task
-| `403`
-| `AuthorizationError`
-
-| Unsupported requested extension, or required extension not requested
-| `400`
-| `ExtensionSupportRequiredError`
-
-| Empty `SendMessage` or `SendStreamingMessage` body
-| `400`
-| `ContentTypeNotSupportedError`
-
-| Request body larger than `maxPayloadSize`
-| `413`
-| `ContentTypeNotSupportedError`
-
-| Streaming or task subscription requested but `capabilities.streaming` is omitted or `false`
-| `405`
-| `UnsupportedOperationError`
-
-| Push notification config requested but `capabilities.pushNotifications` is omitted or `false`
-| `405`
-| `UnsupportedOperationError`
-
-| `returnImmediately=true` on REST `SendStreamingMessage`
-| `400`
-| `UnsupportedOperationError`
-
-| Invalid parameters (for example negative `historyLength`, invalid `pageSize`, invalid `pageToken`, or rejected webhook URL)
-| `400`
-| `InvalidParamsError`
-
-| Agent capacity reached
-| `429`
-| `ServerBusyError`
-
-| Task or push notification config not found
-| `404`
-| `TaskNotFoundError`
-
-| Cancel requested for a terminal task
-| `409`
-| `TaskNotCancelableError`
-
-| Unhandled consumer exception
-| `500`
-| `InternalError`
-|===
-
-REST binding returns these error responses as `application/a2a+json` with an `error` object containing the HTTP status, status name, message, and a `google.rpc.ErrorInfo` detail reason such as `TASK_NOT_FOUND` or `VERSION_NOT_SUPPORTED`.
-
-JSON-RPC binding returns JSON-RPC error envelopes as `application/json`. Parse errors use `-32700`, invalid requests use `-32600`, unknown methods use `-32601`, invalid parameters use `-32602`, internal errors use `-32603`, capacity and authorization errors use `-32000`, missing tasks use `-32001`, non-cancelable terminal tasks use `-32002`, push notification support errors use `-32003`, unsupported operations use `-32004`, unsupported content types use `-32005`, invalid agent responses  [...]
-
-== Producer — Calling a Remote Agent
-
-The producer calls a remote A2A agent. It automatically discovers the agent card, selects the protocol binding, acquires credentials, and wraps/unwraps messages.
-
-=== Basic Call
-
-[tabs]
-====
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:call-agent
-      steps:
-        - setBody:
-            constant: "What is the weather?"
-        - to:
-            uri: a2a:http://remote-agent:8080
-        - log:
-            message: "Agent replied: ${a2a:text}"
-----
-
-Java::
-+
-[source,java]
-----
-from("direct:call-agent")
-    .setBody(constant("What is the weather?"))
-    .to("a2a:http://remote-agent:8080")
-    .log("Agent replied: ${a2a:text}");
-----
-====
-
-The producer:
-
-1. Fetches the agent card from `\http://remote-agent:8080/.well-known/agent-card.json`
-2. Wraps the body as an A2A `SendMessage` request
-3. Sends the request using the card's declared protocol binding
-4. Returns the response as the exchange body — by default (`dataFormat=PAYLOAD`) as extracted text; with `dataFormat=POJO` as the full `Task` or `Message` Java object
-
-=== Authenticated Calls
-
-==== OIDC (Client Credentials)
-
-[source,yaml]
-----
-- to:
-    uri: a2a:http://remote-agent:8080
-    parameters:
-      oauthProfile: my-profile
-----
-
-Acquires a token via client-credentials grant, caches it, and refreshes on expiry.
-
-==== API Key
-
-[source,yaml]
-----
-- to:
-    uri: a2a:http://remote-agent:8082
-    parameters:
-      apiKey: "{{my.api.key}}"
-      apiKeyHeader: X-API-Key
-----
-
-==== Bearer Token
-
-[source,yaml]
-----
-- to:
-    uri: a2a:http://remote-agent:8080
-    parameters:
-      bearerToken: "{{my.token}}"
-----
-
-=== JSON-RPC Producer
-
-[source,yaml]
-----
-- to:
-    uri: a2a:http://remote-agent:8081
-    parameters:
-      protocolBinding: JSONRPC
-----
-
-=== Producer Streaming
-
-The producer supports two streaming modes, controlled by the `dataFormat` parameter.
-
-==== Default (PAYLOAD/POJO): Lazy Iterator
-
-The exchange body is a `SseEventIterator` (implements `Iterator<StreamResponse>` + `Closeable`) that parses SSE events lazily from the remote agent's response stream. Each call to `next()` blocks until the next event arrives. Use with the Split EIP for event-by-event processing:
-
-[tabs]
-====
-YAML::
-+
-[source,yaml]
-----
-- setHeader:
-    name: CamelA2AOperation
-    constant: MESSAGE_STREAM
-- to: a2a:https://agent.example.com
-- split:
-    simple: "${body}"
-    streaming: true
-    steps:
-      - choice:
-          when:
-            - simple: "${body.statusUpdate} != null"
-              steps:
-                - log:
-                    message: "Progress: ${body.statusUpdate.status.state}"
-            - simple: "${body.message} != null"
-              steps:
-                - log:
-                    message: "Final message received"
-----
-
-Java::
-+
-[source,java]
-----
-from("direct:stream")
-    .setHeader("CamelA2AOperation", constant("MESSAGE_STREAM"))
-    .to("a2a:https://agent.example.com")
-    .split(body()).streaming()
-        .log("Event: ${body}")
-    .end();
-----
-====
-
-The iterator implements `Closeable`, so Camel's Split EIP automatically releases the underlying HTTP connection after iteration.
-
-To buffer all events into a `List<StreamResponse>`:
-
-[source,yaml]
-----
-- to: a2a:https://agent.example.com
-- convertBodyTo:
-    type: java.util.List
-----
-
-==== Raw Passthrough (RAW mode)
-
-With `dataFormat=RAW`, the exchange body is the raw `InputStream` from the remote agent's SSE response. No parsing or buffering — bytes flow through untouched. Ideal for proxying SSE streams to a browser:
-
-[tabs]
-====
-YAML::
-+
-[source,yaml]
-----
-- to:
-    uri: a2a:https://agent.example.com?dataFormat=RAW
-    parameters:
-      operation: MESSAGE_STREAM
-- setHeader:
-    name: Content-Type
-    constant: text/event-stream
-----
-
-Java::
-+
-[source,java]
-----
-from("platform-http:/stream")
-    .to("a2a:https://agent.example.com?dataFormat=RAW&operation=MESSAGE_STREAM")
-    .setHeader("Content-Type", constant("text/event-stream"));
-----
-====
-
-==== Subscribe to Task Updates
-
-Subscribe to ongoing task updates from a remote agent:
-
-[source,yaml]
-----
-- setHeader:
-    name: CamelA2AOperation
-    constant: TASK_SUBSCRIBE
-- setHeader:
-    name: CamelA2ATaskId
-    simple: "${exchangeProperty.taskId}"
-- to: a2a:https://agent.example.com
-- split:
-    simple: "${body}"
-    streaming: true
-    steps:
-      - log:
-          message: "Task update: ${body.statusUpdate.status.state}"
-----
-
-Streaming requests use `asyncTimeout` (default 5 minutes) instead of the standard 60-second request timeout. SSE heartbeat comments from the remote agent are automatically filtered during parsing.
-
-=== Async Task Lifecycle (returnImmediately + GetTask Polling)
-
-[source,yaml]
-----
-# Step 1: Submit the task
-- setBody:
-    constant: "Start long operation"
-- to:
-    uri: a2a:http://remote-agent:8083
-    parameters:
-      oauthProfile: assistant
-- setVariable:
-    name: taskId
-    simple: "${header.CamelA2ATaskId}"
-
-# Step 2: Poll for completion
-- removeHeaders:
-    pattern: "*"
-- setHeader:
-    name: CamelA2AOperation
-    constant: TASK_GET
-- setHeader:
-    name: CamelA2ATaskId
-    simple: "${variable.taskId}"
-- to:
-    uri: a2a:http://remote-agent:8083
-    parameters:
-      oauthProfile: assistant
-----
-
-=== Push Notification Registration
-
-[source,yaml]
-----
-# Step 1: Submit task
-- setBody:
-    constant: "Track my package"
-- to: a2a:http://remote-agent:8085
-- setVariable:
-    name: taskId
-    simple: "${header.CamelA2ATaskId}"
-
-# Step 2: Register push notification webhook
-- removeHeaders:
-    pattern: "*"
-- setHeader:
-    name: CamelA2AOperation
-    constant: PUSH_CONFIG_CREATE
-- setHeader:
-    name: CamelA2ATaskId
-    simple: "${variable.taskId}"
-- setBody:
-    simple: "${ref:pushConfig}"
-- to: a2a:http://remote-agent:8085
-----
-
-Configure the webhook URL as a bean:
-
-[source,properties]
-----
-camel.beans.pushConfig = #class:org.apache.camel.component.a2a.model.TaskPushNotificationConfig
-camel.beans.pushConfig.url = https://my-server:8090/webhook
-----
-
-The full push notification config CRUD is also available. `PUSH_CONFIG_GET` and `PUSH_CONFIG_DELETE` require both `CamelA2ATaskId` and `CamelA2APushConfigId`. Use JSON-RPC binding for these two producer operations when addressing another `camel-a2a` agent with separate task and config IDs.
-
-[source,yaml]
-----
-# List push configs for a task
-- setHeader:
-    name: CamelA2AOperation
-    constant: PUSH_CONFIG_LIST
-- setHeader:
-    name: CamelA2ATaskId
-    simple: "${variable.taskId}"
-- to: a2a:https://agent.example.com
-
-# Get a specific push config
-- setHeader:
-    name: CamelA2AOperation
-    constant: PUSH_CONFIG_GET
-- setHeader:
-    name: CamelA2ATaskId
-    simple: "${variable.taskId}"
-- setHeader:
-    name: CamelA2APushConfigId
-    simple: "${variable.configId}"
-- to: "a2a:https://agent.example.com?protocolBinding=JSONRPC"
-
-# Delete a push config
-- setHeader:
-    name: CamelA2AOperation
-    constant: PUSH_CONFIG_DELETE
-- setHeader:
-    name: CamelA2ATaskId
-    simple: "${variable.taskId}"
-- setHeader:
-    name: CamelA2APushConfigId
-    simple: "${variable.configId}"
-- to: "a2a:https://agent.example.com?protocolBinding=JSONRPC"
-----
-
-=== Parallel Multicast
-
-Call multiple agents concurrently using Camel's `multicast` EIP:
-
-[source,yaml]
-----
-- multicast:
-    parallelProcessing: true
-    aggregationStrategy: "#class:MyAggregator"
-    steps:
-      - to: direct:call-weather
-      - to: direct:call-news
-      - to: direct:call-fortune
-
-- route:
-    id: call-weather
-    from:
-      uri: direct:call-weather
-      steps:
-        - removeHeaders:
-            pattern: "*"
-        - setBody:
-            constant: "What is the weather?"
-        - to:
-            uri: a2a:http://weather-agent:8080
-            parameters:
-              oauthProfile: my-profile
-----
-
-[TIP]
-====
-Use `removeHeaders: "*"` before each producer call in a multicast branch to prevent leaking headers (like `CamelA2ATaskId`) from one branch to another.
-====
-
-=== Address Override
-
-Override the remote agent's URL from the card using `host`/`port`/`basePath` config:
-
-[source,yaml]
-----
-- to: a2a:https://agent.example.com?host=http://localhost&port=8080
-----
-
-Priority without producer credentials: `host` config > card's `supportedInterfaces` URL > `agentCardSource` URL. When producer credentials are configured (`apiKey`, `bearerToken`, or `oauthProfile`) and `host` is not set, the producer sends credentialed requests only to the HTTP(S) `agentCardSource` origin. This avoids sending credentials to a URL supplied by the remote card's `supportedInterfaces` field. The `port` and `basePath` producer overrides are applied when `host` is configured. [...]
-
-NOTE: The producer does not forward arbitrary inbound `Authorization` or `Cookie` headers. Only credentials resolved from the A2A endpoint configuration are applied to outgoing requests.
-
-=== Redirect Handling
-
-By default, the producer does not follow HTTP redirects to prevent credential leakage on cross-origin redirects. Enable only when the remote agent is known to issue redirects:
-
-[source,yaml]
-----
-- to: a2a:https://agent.example.com?followRedirects=true
-----
-
-NOTE: `followRedirects` applies to operation requests only. Agent card discovery never follows redirects — a card URL that returns a redirect fails with an error.
-
-Producer operation responses must be 2xx. Redirect and other non-2xx responses fail before response deserialization, so a 3xx response cannot be accidentally parsed as an A2A payload.
-
-=== Request Timeouts
-
-The producer uses different timeouts depending on the operation:
-
-* *Non-streaming requests*: hard-coded at 60 seconds. There is currently no configuration parameter to override this.
-* *Streaming requests* (`SendStreamingMessage`, `SubscribeToTask`): uses `asyncTimeout` (default 300,000 ms / 5 minutes).
-* *Streaming read timeout*: `streamingReadTimeout` (default 300,000 ms / 5 minutes) — if no SSE event arrives from the remote agent within this period, the stream is closed with an error. Prevents indefinite blocking when a remote agent stops sending events.
-* *Streaming event size*: each decoded SSE event is limited by `maxPayloadSize` (default 6 MiB). Oversized events fail the producer stream instead of accumulating unbounded memory.
-* *TCP connection*: `connectTimeout` (default 30,000 ms / 30 seconds).
-
-=== A2A-Version Header
-
-The producer sends an `A2A-Version: 1.0` header on every outgoing operation request, per the A2A v1.0 specification. This is automatic and not configurable.
+* xref:others:a2a-consumer.adoc[Consumer Guide] - Exposing an A2A agent with authentication, SSE streaming, async tasks, push notifications, and capacity limiting
+* xref:others:a2a-producer.adoc[Producer Guide] - Calling remote agents with streaming, async task lifecycle, push notifications, and parallel multicast
 
 == Simple Language Functions
 
diff --git a/components/camel-ai/camel-a2a/src/main/docs/a2a-consumer.adoc b/components/camel-ai/camel-a2a/src/main/docs/a2a-consumer.adoc
new file mode 100644
index 000000000000..50330c6fd2ea
--- /dev/null
+++ b/components/camel-ai/camel-a2a/src/main/docs/a2a-consumer.adoc
@@ -0,0 +1,743 @@
+= A2A - Consumer Guide
+:tabs-sync-option:
+
+xref:ROOT:a2a-component.adoc[Back to A2A Component]
+
+== Consumer — Exposing an A2A Agent
+
+The consumer turns a Camel route into an A2A agent. It automatically:
+
+- Serves the agent card at `GET /.well-known/agent-card.json`
+- Registers HTTP endpoints for A2A operations (REST routes, or a JSON-RPC dispatcher for supported methods)
+- Validates authentication on incoming requests (when configured)
+- Manages task state via an internal `A2ATaskStore`
+- Dispatches push notification webhooks when task state changes
+- Filters inbound `Camel*` and `org.apache.camel.*` headers (case-insensitive) from untrusted requests
+- Enforces `maxPayloadSize` on incoming request bodies (returns 413 when exceeded)
+
+The route's `setBody` output becomes the agent's response — the consumer handles all A2A protocol wrapping. The `dataFormat` parameter controls what the route receives as body: extracted text (`PAYLOAD`, default), the full `Message` object (`POJO`), or raw JSON (`RAW`).
+
+=== Basic Agent (Local Only)
+
+The simplest possible local A2A agent. Define your agent's capabilities in `agent-card.json`, disable operation auth for local-only use, and let the route handle business logic:
+
+[tabs]
+====
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: a2a:classpath:agent-card.json
+      parameters:
+        validateAuth: false
+      steps:
+        - log:
+            message: "Received: ${body}"
+        - setBody:
+            constant: "Hello from my agent!"
+----
+
+Java::
++
+[source,java]
+----
+from("a2a:classpath:agent-card.json?validateAuth=false")
+    .log("Received: ${body}")
+    .setBody(constant("Hello from my agent!"));
+----
+====
+
+Do not use `validateAuth=false` for agents exposed to an untrusted network. See <<Authentication>> for authenticated operation serving.
+
+The agent card (`agent-card.json`) declares your agent's identity and capabilities:
+
+[source,json]
+----
+{
+  "protocolVersion": "1.0",
+  "name": "my-agent",
+  "description": "A simple Camel A2A agent",
+  "url": "http://localhost:8080",
+  "version": "1.0.0",
+  "provider": {
+    "name": "Example",
+    "url": "https://example.com"
+  },
+  "capabilities": {
+    "streaming": false,
+    "pushNotifications": false,
+    "extendedAgentCard": false
+  },
+  "supportedInterfaces": [
+    {
+      "url": "http://localhost:8080",
+      "protocolBinding": "HTTP+JSON",
+      "protocolVersion": "1.0"
+    }
+  ],
+  "defaultInputModes": ["text/plain"],
+  "defaultOutputModes": ["text/plain"],
+  "skills": [
+    {
+      "id": "greet",
+      "name": "Greeting",
+      "description": "Returns a greeting message",
+      "tags": ["greeting"],
+      "examples": ["Say hello to Ada"],
+      "inputModes": ["text/plain"],
+      "outputModes": ["text/plain"]
+    }
+  ]
+}
+----
+
+The component supports the `HTTP+JSON` and `JSONRPC` protocol bindings. The legacy aliases `rest` and `jsonrpc` are also accepted and normalized to the v1.0 binding names. The `protocolVersion`, `defaultInputModes`, and `defaultOutputModes` fields are part of the A2A v1.0 card shape.
+
+NOTE: The `AgentCard` Java model can deserialize A2A v1.0 fields such as `defaultInputModes` and `defaultOutputModes`, and it also stores unknown JSON properties. URI parameter overrides are limited to `name`, `description`, and `version`; the endpoint resolver preserves card metadata and unknown extension properties from file and bean cards, supplies preview defaults for plain-name routes, and rejects unsupported protocol bindings.
+
+=== Card from Parameters (Local Only)
+
+For simple or test agents, the card identity fields can be built from URI parameters - no JSON file needed. Because parameter-built cards do not include security schemes, these local-only examples set `validateAuth=false`:
+
+[tabs]
+====
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: >-
+        a2a:weather-agent
+        ?name=Weather Agent
+        &description=Provides weather forecasts
+        &version=1.0.0
+        &validateAuth=false
+      steps:
+        - bean:
+            ref: weatherService
+----
+
+Java::
++
+[source,java]
+----
+from("a2a:my-agent?name=My Agent&description=A simple agent&version=1.0.0&validateAuth=false")
+    .setBody(constant("Response from parameter-configured agent"));
+----
+====
+
+The component generates the `/.well-known/agent-card.json` response dynamically from the parameters. URI parameters only cover the agent identity fields above; use an agent card file or an `agentCard` bean for capabilities, skills, security schemes, supported interfaces, and other card metadata.
+
+=== JSON-RPC Protocol Binding
+
+By default, the consumer uses the REST binding (HTTP+JSON with colon-notation paths like `/message:send`). To use JSON-RPC 2.0 (single `POST /` endpoint), set `protocolBinding` to `JSONRPC`. The legacy aliases `rest` and `jsonrpc` are also accepted.
+
+[source,yaml]
+----
+- route:
+    from:
+      uri: a2a:classpath:agent-card.json
+      parameters:
+        protocolBinding: JSONRPC
+        validateAuth: false
+      steps:
+        - setBody:
+            constant: "JSON-RPC response"
+----
+
+This example is local-only because it disables operation auth. Keep `validateAuth=true` and configure a card security scheme for network-exposed agents.
+
+The REST binding exposes separate HTTP routes for the operation-serving methods listed in <<Consumer REST API Paths>>. The JSON-RPC binding exposes a single dispatcher and handles `SendMessage`, `SendStreamingMessage`, `GetTask`, `ListTasks`, `CancelTask`, `SubscribeToTask`, and the push notification config operations. Extended agent cards are outside the Preview scope for this first release.
+
+REST requests and responses use `application/a2a+json`. JSON-RPC requests and responses use `application/json`. Streaming operations produce `text/event-stream`.
+
+==== Vert.x Colon-in-Path Issue
+
+The A2A REST protocol uses Google's Custom Method convention with colons in paths (e.g., `/message:send`, `/message:stream`, `/tasks/\{id}:cancel`). Vert.x's router interprets the colon (`:`) as a path parameter delimiter, causing route collisions:
+
+* `/message:send` and `/message:stream` both match the pattern `/message\{param}` — whichever is registered first captures ALL requests
+* `/tasks/\{taskId}:cancel` and `/tasks/\{taskId}:subscribe` can collide with `/tasks/\{taskId}`
+
+This means operation serving is not reliable with REST binding on Vert.x/platform-http. For example, `POST /message:stream` can be handled by the `SendMessage` route instead of the streaming route.
+
+*Workaround:* Use `protocolBinding=JSONRPC` for agents running on Vert.x (the default `platform-http`). Alternatively, use `httpServerComponent=jetty` or `httpServerComponent=undertow`; their routers treat colons as literal characters.
+
+=== Authentication
+
+The component supports OAuth 2.0, OpenID Connect, API key, and HTTP bearer security schemes.
+OAuth 2.0 and OpenID Connect use the `oauthProfile` option and the `camel-oauth` SPI; HTTP bearer can use either an OAuth profile or the static `bearerToken` option.
+
+[IMPORTANT]
+====
+When `validateAuth=true`, the resolved agent card must declare at least one security scheme. If the card declares no schemes, the consumer rejects every request with HTTP 401 (fail closed). Cards built purely from URI parameters contain no security schemes, so combine `validateAuth=true` with a card file or `agentCard` bean that declares the scheme, as shown in the examples below.
+====
+
+[WARNING]
+====
+`validateAuth` defaults to `true`. The well-known agent card remains public, but all A2A operation endpoints require authentication by default. Set `validateAuth=false` only for deployments that intentionally expose unauthenticated A2A operation serving; in that mode the in-memory task store is open/single-tenant and does not provide per-user isolation.
+====
+
+NOTE: The component scopes built-in task and push-notification operations to the authenticated user that created the task. Tenant routing and tenant-aware authorization policy are outside the component scope; implement those rules in the Camel route or in deployment-specific infrastructure.
+
+`securityRequirements` follows A2A v1.0 semantics: multiple requirement objects are alternatives (OR), while multiple schemes inside one requirement must all be satisfied together (AND). The `list` array contains required scopes. The legacy A2A draft field `security` is accepted on input and converted to `securityRequirements`; new cards should use `securityRequirements`.
+
+==== OAuth / OIDC Authentication
+
+Validate incoming bearer tokens via the `camel-oauth` SPI. When an `oauthProfile` is configured, the consumer validates JWT signatures (via JWKS), expiry, issuer, and audience — or uses RFC 7662 token introspection for opaque tokens. Requires `camel-oauth` on the classpath.
+
+[source,yaml]
+----
+- route:
+    from:
+      uri: a2a:classpath:agent-card.json
+      parameters:
+        oauthProfile: my-agent
+        validateAuth: true
+      steps:
+        - setBody:
+            constant: "Authenticated response"
+----
+
+Configure the OIDC provider in application properties (these properties are owned by the `camel-oauth` component — see its documentation for the canonical format):
+
+[source,properties]
+----
+camel.oauth.my-agent.client-id=my-agent-client
+camel.oauth.my-agent.client-secret=my-secret
+camel.oauth.my-agent.token-endpoint=http://keycloak:8180/realms/my-realm/protocol/openid-connect/token
+----
+
+The agent card must declare the security scheme:
+
+[source,json]
+----
+{
+  "securitySchemes": {
+    "oidc": {
+      "openIdConnectSecurityScheme": {
+        "openIdConnectUrl": "http://keycloak:8180/realms/my-realm/.well-known/openid-configuration"
+      }
+    }
+  },
+  "securityRequirements": [
+    {
+      "schemes": {
+        "oidc": {
+          "list": []
+        }
+      }
+    }
+  ]
+}
+----
+
+When authentication succeeds, the `CamelA2AUserProfile` exchange property is populated with a `Map<String, Object>` containing the authenticated user's profile (subject, issuer, scopes, claims). When using OAuth/OIDC, the full `OAuthTokenValidationResult` is also available as the `CamelOAuthTokenValidationResult` exchange property.
+
+==== API Key Authentication
+
+The `apiKeyHeader` parameter controls which HTTP header carries the API key. It defaults to `Authorization`. A common override is `X-API-Key`:
+
+[source,yaml]
+----
+- route:
+    from:
+      uri: a2a:classpath:agent-card.json
+      parameters:
+        validateAuth: true
+        apiKey: "{{my.api.key}}"
+        apiKeyHeader: X-API-Key      # default is Authorization
+      steps:
+        - setBody:
+            constant: "API key protected response"
+----
+
+The agent card must declare an `apiKey` security scheme:
+
+[source,json]
+----
+{
+  "securitySchemes": {
+    "apikey": {
+      "apiKeySecurityScheme": {
+        "location": "header",
+        "name": "X-API-Key"
+      }
+    }
+  },
+  "securityRequirements": [
+    {
+      "schemes": {
+        "apikey": {
+          "list": []
+        }
+      }
+    }
+  ]
+}
+----
+
+When the scheme declares `location=header` and `name`, that header name takes precedence over `apiKeyHeader`. The component also supports `location=query` and `location=cookie` for API key schemes.
+
+==== Bearer Token
+
+[source,yaml]
+----
+- route:
+    from:
+      uri: a2a:classpath:agent-card.json
+      parameters:
+        bearerToken: "{{my.token}}"
+        validateAuth: true
+      steps:
+        - setBody:
+            constant: "Bearer token protected response"
+----
+
+The agent card must declare an `http` bearer security scheme:
+
+[source,json]
+----
+{
+  "securitySchemes": {
+    "bearer": {
+      "httpAuthSecurityScheme": {
+        "scheme": "bearer"
+      }
+    }
+  },
+  "securityRequirements": [
+    {
+      "schemes": {
+        "bearer": {
+          "list": []
+        }
+      }
+    }
+  ]
+}
+----
+
+NOTE: The agent card endpoint (`GET /.well-known/agent-card.json`) is always public — clients need it for discovery before they can authenticate.
+
+=== SSE Streaming with `${a2a:emit()}`
+
+Agents can emit progressive status updates during processing using the `${a2a:emit()}` Simple language function. Clients receive these as Server-Sent Events (SSE).
+
+For `SendStreamingMessage` and `SubscribeToTask`, the agent card must explicitly set `capabilities.streaming=true`. If the `capabilities` object is missing, or `streaming` is omitted or `false`, the consumer returns `UnsupportedOperationError` (HTTP 405 for REST, JSON-RPC `-32004` for JSON-RPC).
+
+[tabs]
+====
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: a2a:classpath:agent-card.json
+      parameters:
+        protocolBinding: JSONRPC
+        httpServerComponent: undertow
+      steps:
+        - script:
+            simple: "${a2a:emit('Connecting to database...')}"
+        - delay:
+            constant: 2000
+        - script:
+            simple: "${a2a:emit('Processing 1000 records...')}"
+        - delay:
+            constant: 3000
+        - script:
+            simple: "${a2a:emit('Analysis complete!')}"
+        - setBody:
+            constant: "Final analysis results: ..."
+----
+
+Java::
++
+[source,java]
+----
+import org.apache.camel.component.a2a.A2AProgress;
+
+from("a2a:classpath:agent-card.json?httpServerComponent=undertow")
+    .process(exchange -> {
+        A2AProgress.emit(exchange, "Connecting...");
+        //connect to the external service
+        A2AProgress.emit(exchange, "Processing...");
+        //process data
+        exchange.getMessage().setBody("Here is the final answer.");
+    });
+----
+====
+
+Each `${a2a:emit('message')}` emits an SSE status event with `TASK_STATE_WORKING` state. The final `setBody` is automatically delivered as the completed response.
+
+You can also emit with an explicit state:
+
+[source,yaml]
+----
+- script:
+    simple: "${a2a:emit(INPUT_REQUIRED, 'Please provide your address')}"
+----
+
+NOTE: Use `script` EIP (not `setBody`) for `${a2a:emit()}` calls — `script` evaluates the expression for its side effect without changing the message body. Use `setBody` only for the final response.
+
+=== Scoped progress updates with `a2aSubTask`
+
+Camel routes can group related work with the `a2aSubTask` EIP and emit progress updates before, after, or when the grouped steps fail.
+This is a regular Camel route step, not a YAML-only extension, and it can be used from Camel's model-based DSLs when `camel-a2a` is on the classpath.
+The `emitBefore`, `emitAfter`, and `emitOnError` fields are optional and are evaluated as Simple expressions against the current Exchange.
+The nested `steps` behave like normal Camel route steps: in YAML they are configured under `steps`, and in Java DSL they are added after `.a2aSubTask()` until `.end()`.
+If the nested steps fail, `emitOnError` can access the original exception, for example with `$\{exception.message}`, and the original exception continues to propagate through the route.
+Failures while evaluating the `emitBefore`, `emitAfter`, or `emitOnError` Simple expressions are route failures.
+Failures while storing or notifying the resulting A2A progress event are best-effort: they are logged at debug level and do not stop nested work, fail an otherwise successful exchange, or replace the original nested-step exception.
+By default, emitting progress outside an active A2A task context is a no-op.
+Set `failIfNoTaskContext=true` when a route should fail instead if the current Exchange does not carry an active A2A task.
+An active task context is normally created by an A2A consumer while it is processing a task.
+Use stable `id` values on long-lived sub-tasks so route tracing and route-structure views keep stable node names.
+
+[source,yaml]
+----
+- route:
+    from:
+      uri: a2a:classpath:agent-card.json
+      parameters:
+        protocolBinding: JSONRPC
+        httpServerComponent: undertow
+        validateAuth: false
+      steps:
+        - a2aSubTask:
+            id: search-docs-progress
+            emitBefore: "Searching docs..."
+            emitAfter: "Docs found: ${body.size()}"
+            emitOnError: "Error searching docs: ${exception.message}"
+            failIfNoTaskContext: true
+            steps:
+              - to:
+                  uri: "elasticsearch:docs?operation=Search"
+        - a2aSubTask:
+            id: draft-answer-progress
+            emitBefore: "Drafting answer..."
+            emitAfter: "Answer drafted: ${body}"
+            emitOnError: "Error drafting answer: ${exception.message}"
+            steps:
+              - bean:
+                  ref: answerDraftingService
+                  method: draft
+        - setBody:
+            simple: "Final answer: ${body}"
+----
+
+The route examples in this section are local-only because they disable operation auth. Keep `validateAuth=true` and configure a card security scheme for network-exposed agents.
+
+The same route step is also available from Java DSL:
+
+[source,java]
+----
+from("a2a:classpath:agent-card.json?protocolBinding=JSONRPC&httpServerComponent=undertow&validateAuth=false")
+    .a2aSubTask()
+        .id("search-docs-progress")
+        .emitBefore("Searching docs...")
+        .emitAfter("Docs found: ${body.size()}")
+        .emitOnError("Error searching docs: ${exception.message}")
+        .failIfNoTaskContext(true)
+        .to("elasticsearch:docs?operation=Search")
+    .end();
+----
+
+For advanced use cases, `A2AProgress` also supports emitting structured artifacts and intermediate messages:
+
+._Java-only: emitting structured artifacts and intermediate messages with A2AProgress_
+[source,java]
+----
+// Emit a structured artifact (e.g., a generated file)
+Artifact artifact = Artifact.builder()
+    .artifactId("report-1")
+    .name("Analysis Report")
+    .parts(List.of(new TextPart("Report content...")))
+    .build();
+A2AProgress.emitArtifact(exchange, artifact, false, true);  // append=false, lastChunk=true
+
+// Emit an intermediate agent message (not a status update)
+Message msg = Message.builder()
+    .role(Message.Role.ROLE_AGENT)
+    .parts(List.of(new TextPart("Intermediate finding...")))
+    .build();
+A2AProgress.emitMessage(exchange, msg);
+----
+
+The consumer supports two SSE streaming patterns:
+
+* *`SendStreamingMessage`* — The stream starts with the submitted `Task`, followed by progress events from `A2AProgress` or `${a2a:emit()}`. When the route completes, the body is emitted as the final message.
+* *`SubscribeToTask`* — Clients subscribe via `POST /tasks/\{id}:subscribe` to receive real-time SSE updates for an existing non-terminal task. The component uses an Event-to-Stream Bridge (`QueueStreamEmitter` + `SseQueueInputStream`) with heartbeat comments to keep the connection alive. The stream sends the current `Task` first and ends when the task later reaches a terminal state. Subscribing to an already-terminal task returns `UnsupportedOperationError`.
+
+[NOTE]
+====
+*HTTP Server Component for Streaming*
+
+Real-time SSE streaming works with all tested HTTP server components: Vert.x/platform-http, Undertow, and Jetty.
+====
+
+SSE streaming parameters:
+
+* `sseHeartbeatInterval` (default 15,000 ms / 15 seconds) — interval for SSE keep-alive heartbeat comments (`:` lines) sent to prevent proxies from closing idle connections. Independent from `asyncTimeout`.
+* `sseQueueCapacity` (default 1,000) — maximum SSE events buffered per streaming connection. When the queue is full, new events are dropped with a warning log. Prevents unbounded memory growth from slow clients.
+
+=== Async Tasks with `returnImmediately`
+
+For long-running operations, enable `returnImmediately` to return a `SUBMITTED` task immediately. The route processes in the background, and clients poll with `GetTask`:
+
+[source,yaml]
+----
+- route:
+    from:
+      uri: a2a:classpath:agent-card.json
+      parameters:
+        returnImmediately: true
+        asyncTimeout: 30000          # default is 300000 (5 minutes)
+      steps:
+        - delay:
+            constant: 10000
+        - setBody:
+            constant: "Long computation result"
+----
+
+The `asyncTimeout` parameter (default: 300,000 ms / 5 minutes) controls how long the background processing can run before the task is marked `FAILED`.
+
+The consumer manages the task lifecycle automatically: `SUBMITTED` -> `WORKING` -> `COMPLETED` (or `FAILED` on error / timeout).
+
+`returnImmediately` resolution priority (highest wins):
+
+1. Per-request: `configuration.returnImmediately` in the `SendMessageRequest` body
+2. Per-request: `configuration.blocking=false` in the `SendMessageRequest` body (typed inverse of immediate return)
+3. Per-exchange: `CamelA2AReturnImmediately` header
+4. Endpoint config: `returnImmediately` URI parameter
+
+`SendMessageRequest.configuration` is modeled as `SendMessageConfiguration`. The consumer interprets `returnImmediately`, `blocking`, and `historyLength`; unknown fields are retained for protocol extensions and future A2A options. `configuration.historyLength` limits the task history returned by synchronous `SendMessage` task responses.
+
+NOTE: The REST consumer rejects `returnImmediately` for streaming operations (`SendStreamingMessage`) with 400 Bad Request.
+
+=== Push Notifications
+
+Agents that use `returnImmediately` can deliver updates via webhooks. Clients register a webhook URL via `CreateTaskPushNotificationConfig`, and the component's built-in `PushNotificationDispatcher` sends status updates to registered URLs.
+
+The agent card should declare push notification support so clients can discover the feature:
+
+[source,json]
+----
+{
+  "capabilities": {
+    "pushNotifications": true
+  }
+}
+----
+
+Progress updates emitted via `${a2a:emit()}` or `A2AProgress.emit()` are automatically dispatched to all registered webhooks.
+
+Push notification dispatch features:
+
+* *Parallel dispatch* — multiple webhooks per task are notified concurrently via `CompletableFuture`
+* *Auth headers* — `AuthenticationInfo` from the push config is sent as `Authorization: <scheme> <credentials>`
+* *Retry with exponential backoff* — configurable via `pushRetryAttempts` (default 3) and `pushRetryBackoffMs` (default 1s). Backoff formula: `delay x 2^attempt`. Only retries on 5xx/IOException — client errors (4xx) are not retried
+* *410 Gone auto-cleanup* — webhooks returning HTTP 410 are automatically deregistered
+* *SSRF protection* — webhook URLs are validated at registration time (blocks private IPs, loopback, link-local, wildcard, and cloud metadata addresses). Non-loopback webhook URLs must use HTTPS. Set `allowLocalWebhookUrls=true` to permit loopback URLs (plain HTTP allowed) for local development only
+
+=== Capacity Limiting
+
+Control concurrent task processing and queue overflow:
+
+[source,yaml]
+----
+- route:
+    from:
+      uri: a2a:classpath:agent-card.json
+      parameters:
+        maxConcurrentTasks: 10
+        taskQueueSize: 50
+      steps:
+        - setBody:
+            constant: "Processing..."
+----
+
+[cols="1,1,3"]
+|===
+| Parameter | Default | Description
+
+| `maxConcurrentTasks`
+| `0` (unlimited)
+| Maximum concurrent tasks. A shared semaphore governs all processing paths (sync, async, streaming).
+
+| `taskQueueSize`
+| `0` (no queue)
+| Pending queue capacity for async requests when all slots are occupied. Synchronous and streaming requests cannot be queued — they are rejected immediately.
+|===
+
+Behavior by processing path:
+
+* *Synchronous* (`returnImmediately=false`): if no permit, returns `ServerBusyError` (HTTP 429)
+* *Asynchronous* (`returnImmediately=true`): if no permit and queue has space, task queues as `SUBMITTED`; otherwise HTTP 429
+* *Streaming* (`SendStreamingMessage`): same as synchronous — rejects immediately
+
+The error response follows the A2A error model: REST returns HTTP 429 with `ServerBusyError`; JSON-RPC returns code `-32000` in the JSON-RPC error envelope.
+
+On shutdown, queued tasks are marked `FAILED` and subscribers are notified.
+
+=== Payload Size Limits
+
+The consumer enforces `maxPayloadSize` (default 6,291,456 bytes / 6 MiB) on incoming request bodies. Requests exceeding this limit receive HTTP 413 (REST) or a JSON-RPC error.
+
+[source,yaml]
+----
+- route:
+    from:
+      uri: a2a:classpath:agent-card.json
+      parameters:
+        maxPayloadSize: 10485760
+----
+
+=== CORS Support
+
+To enable CORS (required when browsers call your agent directly), set the REST configuration:
+
+[source,properties]
+----
+camel.rest.enableCors=true
+----
+
+The consumer automatically adds `Access-Control-*` headers (including A2A-specific headers like `A2A-Version` and `A2A-Extensions`) and registers OPTIONS preflight handlers for all A2A paths.
+
+=== A2A Extensions
+
+The agent card can advertise protocol extensions in `capabilities.extensions`. For protected operation routes, clients can request extensions with the `A2A-Extensions` HTTP header as a comma-separated list of extension URIs.
+
+The consumer validates requested extensions against the resolved agent card. If any requested URI is not advertised, or if a card extension marked `required=true` is not requested, the request fails before route processing with `UnsupportedExtensionError`. Accepted extension URIs are exposed to the route as the `CamelA2AExtensions` header and exchange property, and are echoed in the `A2A-Extensions` response header.
+
+Routes can branch directly on `CamelA2AExtensions`. For reusable behavior, register one or more `org.apache.camel.component.a2a.extension.A2AExtensionHandler` beans in the Camel registry. A handler is matched by extension URI and is invoked before and after route processing when that extension is negotiated. The handler receives the full `AgentExtension` declaration from the agent card, including `params`.
+
+=== Consumer REST API Paths
+
+When using the default REST protocol binding, the consumer registers these HTTP endpoints:
+
+[cols="1,2,2"]
+|===
+| Method | Path | Operation
+
+| `GET`
+| `/.well-known/agent-card.json`
+| Agent card discovery (always public)
+
+| `POST`
+| `/message:send`
+| SendMessage
+
+| `POST`
+| `/message:stream`
+| SendStreamingMessage (SSE response)
+
+| `GET`
+| `/tasks`
+| ListTasks
+
+| `GET`
+| `/tasks/\{taskId}`
+| GetTask
+
+| `POST`
+| `/tasks/\{taskId}:cancel`
+| CancelTask
+
+| `POST`
+| `/tasks/\{taskId}:subscribe`
+| SubscribeToTask (SSE response)
+
+| `POST`
+| `/tasks/\{taskId}/pushNotificationConfigs`
+| CreateTaskPushNotificationConfig
+
+| `GET`
+| `/tasks/\{taskId}/pushNotificationConfigs`
+| ListTaskPushNotificationConfigs
+
+| `GET`
+| `/tasks/\{taskId}/pushNotificationConfigs/\{configId}`
+| GetTaskPushNotificationConfig
+
+| `DELETE`
+| `/tasks/\{taskId}/pushNotificationConfigs/\{configId}`
+| DeleteTaskPushNotificationConfig
+|===
+
+All paths are prefixed with `basePath` if configured. When using JSON-RPC binding, a single `POST /` endpoint dispatches based on the JSON-RPC `method` field.
+
+The built-in `ListTasks` consumer applies `contextId`, `status`, `statusTimestampAfter`, `pageSize`, `pageToken`, `includeArtifacts`, and `historyLength`. `pageSize` defaults to `50` and is capped at `100`. `pageToken` values returned by the consumer are opaque cursor tokens containing a snapshot of the filtered task IDs for that listing. Clients must send the token back unchanged with the same filters; numeric offsets are rejected.
+
+=== Consumer Error Responses
+
+REST binding responses use the A2A v1.0 error wrapper with an `error` object. The `ErrorInfo.reason` detail maps back to these component error names:
+
+[cols="2,1,2"]
+|===
+| Condition | HTTP status | Error code
+
+| Unsupported `A2A-Version` request header
+| `400`
+| `VersionNotSupportedError`
+
+| Authentication validation failure
+| `401`
+| `AuthenticationError`
+
+| Authenticated caller is not authorized for the task
+| `403`
+| `AuthorizationError`
+
+| Unsupported requested extension, or required extension not requested
+| `400`
+| `ExtensionSupportRequiredError`
+
+| Empty `SendMessage` or `SendStreamingMessage` body
+| `400`
+| `ContentTypeNotSupportedError`
+
+| Request body larger than `maxPayloadSize`
+| `413`
+| `ContentTypeNotSupportedError`
+
+| Streaming or task subscription requested but `capabilities.streaming` is omitted or `false`
+| `405`
+| `UnsupportedOperationError`
+
+| Push notification config requested but `capabilities.pushNotifications` is omitted or `false`
+| `405`
+| `UnsupportedOperationError`
+
+| `returnImmediately=true` on REST `SendStreamingMessage`
+| `400`
+| `UnsupportedOperationError`
+
+| Invalid parameters (for example negative `historyLength`, invalid `pageSize`, invalid `pageToken`, or rejected webhook URL)
+| `400`
+| `InvalidParamsError`
+
+| Agent capacity reached
+| `429`
+| `ServerBusyError`
+
+| Task or push notification config not found
+| `404`
+| `TaskNotFoundError`
+
+| Cancel requested for a terminal task
+| `409`
+| `TaskNotCancelableError`
+
+| Unhandled consumer exception
+| `500`
+| `InternalError`
+|===
+
+REST binding returns these error responses as `application/a2a+json` with an `error` object containing the HTTP status, status name, message, and a `google.rpc.ErrorInfo` detail reason such as `TASK_NOT_FOUND` or `VERSION_NOT_SUPPORTED`.
+
+JSON-RPC binding returns JSON-RPC error envelopes as `application/json`. Parse errors use `-32700`, invalid requests use `-32600`, unknown methods use `-32601`, invalid parameters use `-32602`, internal errors use `-32603`, capacity and authorization errors use `-32000`, missing tasks use `-32001`, non-cancelable terminal tasks use `-32002`, push notification support errors use `-32003`, unsupported operations use `-32004`, unsupported content types use `-32005`, invalid agent responses  [...]
diff --git a/components/camel-ai/camel-a2a/src/main/docs/a2a-producer.adoc b/components/camel-ai/camel-a2a/src/main/docs/a2a-producer.adoc
new file mode 100644
index 000000000000..a624caf5c7ed
--- /dev/null
+++ b/components/camel-ai/camel-a2a/src/main/docs/a2a-producer.adoc
@@ -0,0 +1,377 @@
+= A2A - Producer Guide
+:tabs-sync-option:
+
+xref:ROOT:a2a-component.adoc[Back to A2A Component]
+
+== Producer — Calling a Remote Agent
+
+The producer calls a remote A2A agent. It automatically discovers the agent card, selects the protocol binding, acquires credentials, and wraps/unwraps messages.
+
+=== Basic Call
+
+[tabs]
+====
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:call-agent
+      steps:
+        - setBody:
+            constant: "What is the weather?"
+        - to:
+            uri: a2a:http://remote-agent:8080
+        - log:
+            message: "Agent replied: ${a2a:text}"
+----
+
+Java::
++
+[source,java]
+----
+from("direct:call-agent")
+    .setBody(constant("What is the weather?"))
+    .to("a2a:http://remote-agent:8080")
+    .log("Agent replied: ${a2a:text}");
+----
+====
+
+The producer:
+
+1. Fetches the agent card from `\http://remote-agent:8080/.well-known/agent-card.json`
+2. Wraps the body as an A2A `SendMessage` request
+3. Sends the request using the card's declared protocol binding
+4. Returns the response as the exchange body — by default (`dataFormat=PAYLOAD`) as extracted text; with `dataFormat=POJO` as the full `Task` or `Message` Java object
+
+=== Authenticated Calls
+
+==== OIDC (Client Credentials)
+
+[source,yaml]
+----
+- to:
+    uri: a2a:http://remote-agent:8080
+    parameters:
+      oauthProfile: my-profile
+----
+
+Acquires a token via client-credentials grant, caches it, and refreshes on expiry.
+
+==== API Key
+
+[source,yaml]
+----
+- to:
+    uri: a2a:http://remote-agent:8082
+    parameters:
+      apiKey: "{{my.api.key}}"
+      apiKeyHeader: X-API-Key
+----
+
+==== Bearer Token
+
+[source,yaml]
+----
+- to:
+    uri: a2a:http://remote-agent:8080
+    parameters:
+      bearerToken: "{{my.token}}"
+----
+
+=== JSON-RPC Producer
+
+[source,yaml]
+----
+- to:
+    uri: a2a:http://remote-agent:8081
+    parameters:
+      protocolBinding: JSONRPC
+----
+
+=== Producer Streaming
+
+The producer supports two streaming modes, controlled by the `dataFormat` parameter.
+
+==== Default (PAYLOAD/POJO): Lazy Iterator
+
+The exchange body is a `SseEventIterator` (implements `Iterator<StreamResponse>` + `Closeable`) that parses SSE events lazily from the remote agent's response stream. Each call to `next()` blocks until the next event arrives. Use with the Split EIP for event-by-event processing:
+
+[tabs]
+====
+YAML::
++
+[source,yaml]
+----
+- setHeader:
+    name: CamelA2AOperation
+    constant: MESSAGE_STREAM
+- to: a2a:https://agent.example.com
+- split:
+    simple: "${body}"
+    streaming: true
+    steps:
+      - choice:
+          when:
+            - simple: "${body.statusUpdate} != null"
+              steps:
+                - log:
+                    message: "Progress: ${body.statusUpdate.status.state}"
+            - simple: "${body.message} != null"
+              steps:
+                - log:
+                    message: "Final message received"
+----
+
+Java::
++
+[source,java]
+----
+from("direct:stream")
+    .setHeader("CamelA2AOperation", constant("MESSAGE_STREAM"))
+    .to("a2a:https://agent.example.com")
+    .split(body()).streaming()
+        .log("Event: ${body}")
+    .end();
+----
+====
+
+The iterator implements `Closeable`, so Camel's Split EIP automatically releases the underlying HTTP connection after iteration.
+
+To buffer all events into a `List<StreamResponse>`:
+
+[source,yaml]
+----
+- to: a2a:https://agent.example.com
+- convertBodyTo:
+    type: java.util.List
+----
+
+==== Raw Passthrough (RAW mode)
+
+With `dataFormat=RAW`, the exchange body is the raw `InputStream` from the remote agent's SSE response. No parsing or buffering — bytes flow through untouched. Ideal for proxying SSE streams to a browser:
+
+[tabs]
+====
+YAML::
++
+[source,yaml]
+----
+- to:
+    uri: a2a:https://agent.example.com?dataFormat=RAW
+    parameters:
+      operation: MESSAGE_STREAM
+- setHeader:
+    name: Content-Type
+    constant: text/event-stream
+----
+
+Java::
++
+[source,java]
+----
+from("platform-http:/stream")
+    .to("a2a:https://agent.example.com?dataFormat=RAW&operation=MESSAGE_STREAM")
+    .setHeader("Content-Type", constant("text/event-stream"));
+----
+====
+
+==== Subscribe to Task Updates
+
+Subscribe to ongoing task updates from a remote agent:
+
+[source,yaml]
+----
+- setHeader:
+    name: CamelA2AOperation
+    constant: TASK_SUBSCRIBE
+- setHeader:
+    name: CamelA2ATaskId
+    simple: "${exchangeProperty.taskId}"
+- to: a2a:https://agent.example.com
+- split:
+    simple: "${body}"
+    streaming: true
+    steps:
+      - log:
+          message: "Task update: ${body.statusUpdate.status.state}"
+----
+
+Streaming requests use `asyncTimeout` (default 5 minutes) instead of the standard 60-second request timeout. SSE heartbeat comments from the remote agent are automatically filtered during parsing.
+
+=== Async Task Lifecycle (returnImmediately + GetTask Polling)
+
+[source,yaml]
+----
+# Step 1: Submit the task
+- setBody:
+    constant: "Start long operation"
+- to:
+    uri: a2a:http://remote-agent:8083
+    parameters:
+      oauthProfile: assistant
+- setVariable:
+    name: taskId
+    simple: "${header.CamelA2ATaskId}"
+
+# Step 2: Poll for completion
+- removeHeaders:
+    pattern: "*"
+- setHeader:
+    name: CamelA2AOperation
+    constant: TASK_GET
+- setHeader:
+    name: CamelA2ATaskId
+    simple: "${variable.taskId}"
+- to:
+    uri: a2a:http://remote-agent:8083
+    parameters:
+      oauthProfile: assistant
+----
+
+=== Push Notification Registration
+
+[source,yaml]
+----
+# Step 1: Submit task
+- setBody:
+    constant: "Track my package"
+- to: a2a:http://remote-agent:8085
+- setVariable:
+    name: taskId
+    simple: "${header.CamelA2ATaskId}"
+
+# Step 2: Register push notification webhook
+- removeHeaders:
+    pattern: "*"
+- setHeader:
+    name: CamelA2AOperation
+    constant: PUSH_CONFIG_CREATE
+- setHeader:
+    name: CamelA2ATaskId
+    simple: "${variable.taskId}"
+- setBody:
+    simple: "${ref:pushConfig}"
+- to: a2a:http://remote-agent:8085
+----
+
+Configure the webhook URL as a bean:
+
+[source,properties]
+----
+camel.beans.pushConfig = #class:org.apache.camel.component.a2a.model.TaskPushNotificationConfig
+camel.beans.pushConfig.url = https://my-server:8090/webhook
+----
+
+The full push notification config CRUD is also available. `PUSH_CONFIG_GET` and `PUSH_CONFIG_DELETE` require both `CamelA2ATaskId` and `CamelA2APushConfigId`. Use JSON-RPC binding for these two producer operations when addressing another `camel-a2a` agent with separate task and config IDs.
+
+[source,yaml]
+----
+# List push configs for a task
+- setHeader:
+    name: CamelA2AOperation
+    constant: PUSH_CONFIG_LIST
+- setHeader:
+    name: CamelA2ATaskId
+    simple: "${variable.taskId}"
+- to: a2a:https://agent.example.com
+
+# Get a specific push config
+- setHeader:
+    name: CamelA2AOperation
+    constant: PUSH_CONFIG_GET
+- setHeader:
+    name: CamelA2ATaskId
+    simple: "${variable.taskId}"
+- setHeader:
+    name: CamelA2APushConfigId
+    simple: "${variable.configId}"
+- to: "a2a:https://agent.example.com?protocolBinding=JSONRPC"
+
+# Delete a push config
+- setHeader:
+    name: CamelA2AOperation
+    constant: PUSH_CONFIG_DELETE
+- setHeader:
+    name: CamelA2ATaskId
+    simple: "${variable.taskId}"
+- setHeader:
+    name: CamelA2APushConfigId
+    simple: "${variable.configId}"
+- to: "a2a:https://agent.example.com?protocolBinding=JSONRPC"
+----
+
+=== Parallel Multicast
+
+Call multiple agents concurrently using Camel's `multicast` EIP:
+
+[source,yaml]
+----
+- multicast:
+    parallelProcessing: true
+    aggregationStrategy: "#class:MyAggregator"
+    steps:
+      - to: direct:call-weather
+      - to: direct:call-news
+      - to: direct:call-fortune
+
+- route:
+    id: call-weather
+    from:
+      uri: direct:call-weather
+      steps:
+        - removeHeaders:
+            pattern: "*"
+        - setBody:
+            constant: "What is the weather?"
+        - to:
+            uri: a2a:http://weather-agent:8080
+            parameters:
+              oauthProfile: my-profile
+----
+
+[TIP]
+====
+Use `removeHeaders: "*"` before each producer call in a multicast branch to prevent leaking headers (like `CamelA2ATaskId`) from one branch to another.
+====
+
+=== Address Override
+
+Override the remote agent's URL from the card using `host`/`port`/`basePath` config:
+
+[source,yaml]
+----
+- to: a2a:https://agent.example.com?host=http://localhost&port=8080
+----
+
+Priority without producer credentials: `host` config > card's `supportedInterfaces` URL > `agentCardSource` URL. When producer credentials are configured (`apiKey`, `bearerToken`, or `oauthProfile`) and `host` is not set, the producer sends credentialed requests only to the HTTP(S) `agentCardSource` origin. This avoids sending credentials to a URL supplied by the remote card's `supportedInterfaces` field. The `port` and `basePath` producer overrides are applied when `host` is configured. [...]
+
+NOTE: The producer does not forward arbitrary inbound `Authorization` or `Cookie` headers. Only credentials resolved from the A2A endpoint configuration are applied to outgoing requests.
+
+=== Redirect Handling
+
+By default, the producer does not follow HTTP redirects to prevent credential leakage on cross-origin redirects. Enable only when the remote agent is known to issue redirects:
+
+[source,yaml]
+----
+- to: a2a:https://agent.example.com?followRedirects=true
+----
+
+NOTE: `followRedirects` applies to operation requests only. Agent card discovery never follows redirects — a card URL that returns a redirect fails with an error.
+
+Producer operation responses must be 2xx. Redirect and other non-2xx responses fail before response deserialization, so a 3xx response cannot be accidentally parsed as an A2A payload.
+
+=== Request Timeouts
+
+The producer uses different timeouts depending on the operation:
+
+* *Non-streaming requests*: hard-coded at 60 seconds. There is currently no configuration parameter to override this.
+* *Streaming requests* (`SendStreamingMessage`, `SubscribeToTask`): uses `asyncTimeout` (default 300,000 ms / 5 minutes).
+* *Streaming read timeout*: `streamingReadTimeout` (default 300,000 ms / 5 minutes) — if no SSE event arrives from the remote agent within this period, the stream is closed with an error. Prevents indefinite blocking when a remote agent stops sending events.
+* *Streaming event size*: each decoded SSE event is limited by `maxPayloadSize` (default 6 MiB). Oversized events fail the producer stream instead of accumulating unbounded memory.
+* *TCP connection*: `connectTimeout` (default 30,000 ms / 30 seconds).
+
+=== A2A-Version Header
+
+The producer sends an `A2A-Version: 1.0` header on every outgoing operation request, per the A2A v1.0 specification. This is automatic and not configurable.
diff --git a/components/camel-ai/camel-docling/src/main/docs/docling-async-processing.adoc b/components/camel-ai/camel-docling/src/main/docs/docling-async-processing.adoc
new file mode 100644
index 000000000000..5b8b2996f8ec
--- /dev/null
+++ b/components/camel-ai/camel-docling/src/main/docs/docling-async-processing.adoc
@@ -0,0 +1,401 @@
+= Docling - Asynchronous Processing
+:tabs-sync-option:
+
+xref:ROOT:docling-component.adoc[Back to Docling Component]
+
+The component supports asynchronous document conversion when using docling-serve API mode. This is particularly useful for:
+- Large documents that take a long time to process
+- High-volume batch processing scenarios
+- Better resource utilization on the server side
+
+== Enabling Async Mode
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:///data/documents?include=.*\\.pdf")
+    .to("docling:CONVERT_TO_MARKDOWN?" +
+        "useDoclingServe=true&" +
+        "useAsyncMode=true&" +
+        "asyncPollInterval=2000&" +
+        "asyncTimeout=300000&" +
+        "contentInBody=true")
+    .to("file:///data/output");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:///data/documents
+      parameters:
+        include: ".*\\.pdf"
+    steps:
+      - to:
+          uri: docling:CONVERT_TO_MARKDOWN
+          parameters:
+            useDoclingServe: true
+            useAsyncMode: true
+            asyncPollInterval: 2000
+            asyncTimeout: 300000
+            contentInBody: true
+      - to:
+          uri: file:///data/output
+----
+====
+
+== Async Processing with Custom Timeout
+
+For very large documents, you may need to increase the timeout:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:///data/large-documents?include=.*\\.pdf")
+    .to("docling:CONVERT_TO_MARKDOWN?" +
+        "useDoclingServe=true&" +
+        "useAsyncMode=true&" +
+        "asyncPollInterval=5000&" +
+        "asyncTimeout=600000&" +  // 10 minutes
+        "contentInBody=true")
+    .to("file:///data/output");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:///data/large-documents
+      parameters:
+        include: ".*\\.pdf"
+    steps:
+      - to:
+          uri: docling:CONVERT_TO_MARKDOWN
+          parameters:
+            useDoclingServe: true
+            useAsyncMode: true
+            asyncPollInterval: 5000
+            asyncTimeout: 600000
+            contentInBody: true
+      - to:
+          uri: file:///data/output
+----
+====
+
+== Using Headers to Control Async Behavior
+
+You can override async settings per-message using headers:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:///data/documents?include=.*\\.pdf")
+    .process(exchange -> {
+        File file = exchange.getIn().getBody(File.class);
+        // Use async mode only for large files
+        if (file.length() > 10 * 1024 * 1024) { // > 10MB
+            exchange.getIn().setHeader("CamelDoclingUseAsyncMode", true);
+            exchange.getIn().setHeader("CamelDoclingAsyncTimeout", 600000L);
+        }
+    })
+    .to("docling:CONVERT_TO_MARKDOWN?useDoclingServe=true&contentInBody=true")
+    .to("file:///data/output");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:///data/documents
+      parameters:
+        include: ".*\\.pdf"
+    steps:
+      - process:
+          ref: "asyncDecisionProcessor"
+      - to:
+          uri: docling:CONVERT_TO_MARKDOWN
+          parameters:
+            useDoclingServe: true
+            contentInBody: true
+      - to:
+          uri: file:///data/output
+----
+====
+
+== Custom Async Workflows
+
+For advanced use cases, you can use the `SUBMIT_ASYNC_CONVERSION` and `CHECK_CONVERSION_STATUS` operations to build custom async workflows with full control over task submission and status polling.
+
+**When to use custom workflows:**
+
+- You need custom polling intervals that vary per task
+- You want to implement custom retry or backoff strategies
+- You need to coordinate multiple async tasks
+- You want to store task IDs in a database for later retrieval
+- You need fine-grained control over timeout and error handling
+
+**When to use built-in async mode (useAsyncMode=true):**
+
+- Standard use cases where automatic polling is sufficient
+- You want the simplest configuration
+- Default polling intervals and timeouts work for your needs
+
+NOTE: Custom polling workflows require Java processors and are more complex. The built-in async mode (`useAsyncMode=true`) is recommended for most use cases.
+
+=== Simple Manual Polling (Java)
+
+The simplest custom workflow uses a Java loop to poll for status:
+
+._Java-only: Java test API (ProducerTemplate with polling loop)_
+
+[source,java]
+----
+// Submit conversion
+String taskId = template.requestBody(
+    "docling:convert?operation=SUBMIT_ASYNC_CONVERSION&useDoclingServe=true",
+    "/path/to/document.pdf", String.class);
+
+// Poll for completion
+ConversionStatus status;
+int attempts = 0;
+do {
+    Thread.sleep(1000);
+    status = template.requestBody(
+        "docling:convert?operation=CHECK_CONVERSION_STATUS&useDoclingServe=true",
+        taskId, ConversionStatus.class);
+    attempts++;
+} while (status.isInProgress() && attempts < 60);
+
+// Get result
+if (status.isCompleted()) {
+    String result = status.getResult();
+    // Process result...
+}
+----
+
+=== Submit and Poll Pattern (Camel Route)
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+// Submit async conversion and poll until complete
+from("file:///data/documents?include=.*\\.pdf")
+    .log("Starting async conversion for: ${header.CamelFileName}")
+    // Step 1: Submit conversion
+    .to("docling:convert?operation=SUBMIT_ASYNC_CONVERSION&useDoclingServe=true")
+    .log("Submitted conversion with task ID: ${body}")
+    .setHeader("taskId", body())
+    .setProperty("maxAttempts", constant(60))
+    .setProperty("attempt", constant(0))
+    // Step 2: Poll for completion
+    .loopDoWhile(method(MyPollingHelper.class, "shouldContinuePolling"))
+        .process(exchange -> {
+            // Increment attempt counter
+            Integer attempt = exchange.getProperty("attempt", Integer.class);
+            exchange.setProperty("attempt", attempt != null ? attempt + 1 : 1);
+        })
+        .log("Polling attempt ${exchangeProperty.attempt} of ${exchangeProperty.maxAttempts}")
+        .setBody(header("taskId"))
+        .to("docling:convert?operation=CHECK_CONVERSION_STATUS&useDoclingServe=true")
+        .setProperty("conversionStatus", body())
+        .process(exchange -> {
+            ConversionStatus status = exchange.getProperty("conversionStatus", ConversionStatus.class);
+            if (status.isCompleted()) {
+                exchange.setProperty("isCompleted", true);
+            } else if (status.isFailed()) {
+                exchange.setProperty("isFailed", true);
+                exchange.setProperty("errorMessage", status.getErrorMessage());
+            }
+        })
+        .choice()
+            .when(exchangeProperty("isCompleted").isEqualTo(true))
+                .stop()
+            .when(exchangeProperty("isFailed").isEqualTo(true))
+                .throwException(new RuntimeException("Conversion failed"))
+        .end()
+        .delay(1000)
+    .end()
+    // Step 3: Extract result
+    .process(exchange -> {
+        ConversionStatus status = exchange.getProperty("conversionStatus", ConversionStatus.class);
+        if (status != null && status.isCompleted() && status.getResult() != null) {
+            exchange.getIn().setBody(status.getResult());
+        } else {
+            throw new RuntimeException("Conversion did not complete");
+        }
+    })
+    .to("file:///data/output");
+
+// Helper class for loop condition
+public class MyPollingHelper {
+    public static boolean shouldContinuePolling(Exchange exchange) {
+        Integer attempt = exchange.getProperty("attempt", Integer.class);
+        Integer maxAttempts = exchange.getProperty("maxAttempts", Integer.class);
+        Boolean isCompleted = exchange.getProperty("isCompleted", Boolean.class);
+        Boolean isFailed = exchange.getProperty("isFailed", Boolean.class);
+
+        if (Boolean.TRUE.equals(isCompleted) || Boolean.TRUE.equals(isFailed)) {
+            return false;
+        }
+        if (attempt != null && maxAttempts != null && attempt >= maxAttempts) {
+            return false;
+        }
+        return true;
+    }
+}
+----
+
+YAML::
++
+[source,yaml]
+----
+# Note: For YAML, consider using the built-in async mode (useAsyncMode=true)
+# which handles polling automatically. Custom polling is easier in Java DSL.
+
+- route:
+    id: async-with-custom-polling
+    from:
+      uri: file:///data/documents
+      parameters:
+        include: ".*\\.pdf"
+    steps:
+      - log:
+          message: "Starting async conversion for: ${header.CamelFileName}"
+      - to:
+          uri: docling:convert
+          parameters:
+            operation: "SUBMIT_ASYNC_CONVERSION"
+            useDoclingServe: true
+      - log:
+          message: "Submitted conversion with task ID: ${body}"
+      - setHeader:
+          name: "taskId"
+          expression:
+            simple:
+              expression: "${body}"
+      # For YAML, simpler to use Java processor bean or built-in async mode
+      - to:
+          uri: bean:asyncPollingProcessor
+      - to:
+          uri: file:///data/output
+----
+====
+
+=== ConversionStatus Object
+
+The `CHECK_CONVERSION_STATUS` operation returns a `ConversionStatus` object with the following properties:
+
+- **taskId** (String) - The task identifier
+- **status** (enum) - PENDING, IN_PROGRESS, COMPLETED, FAILED, or UNKNOWN
+- **result** (String) - Converted document content (available when status is COMPLETED)
+- **errorMessage** (String) - Error details (available when status is FAILED)
+- **progress** (Integer) - Task queue position
+
+Helper methods:
+- `isCompleted()` - Returns true if conversion completed successfully
+- `isFailed()` - Returns true if conversion failed
+- `isInProgress()` - Returns true if conversion is still processing
+
+=== Parallel Processing with Custom Workflow
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+// Submit multiple conversions
+from("file:///data/documents?include=.*\\.pdf")
+    .to("docling:convert?operation=SUBMIT_ASYNC_CONVERSION&useDoclingServe=true")
+    .to("seda:task-queue");
+
+// Process task queue with multiple threads
+from("seda:task-queue?concurrentConsumers=5")
+    .log("Processing task: ${body}")
+    .setHeader("taskId", body())
+    .setProperty("maxAttempts", constant(60))
+    .setProperty("attempt", constant(0))
+    .loopDoWhile(method(MyPollingHelper.class, "shouldContinuePolling"))
+        .process(exchange -> {
+            Integer attempt = exchange.getProperty("attempt", Integer.class);
+            exchange.setProperty("attempt", attempt != null ? attempt + 1 : 1);
+        })
+        .setBody(header("taskId"))
+        .to("docling:convert?operation=CHECK_CONVERSION_STATUS&useDoclingServe=true")
+        .setProperty("conversionStatus", body())
+        .process(exchange -> {
+            ConversionStatus status = exchange.getProperty("conversionStatus", ConversionStatus.class);
+            if (status.isCompleted()) {
+                exchange.setProperty("isCompleted", true);
+            } else if (status.isFailed()) {
+                exchange.setProperty("isFailed", true);
+            }
+        })
+        .choice()
+            .when(exchangeProperty("isCompleted").isEqualTo(true))
+                .stop()
+            .when(exchangeProperty("isFailed").isEqualTo(true))
+                .stop()
+        .end()
+        .delay(1000)
+    .end()
+    .process(exchange -> {
+        ConversionStatus status = exchange.getProperty("conversionStatus", ConversionStatus.class);
+        if (status != null && status.isCompleted()) {
+            exchange.getIn().setBody(status.getResult());
+        }
+    })
+    .choice()
+        .when(body().isNotNull())
+            .to("file:///data/output?fileName=${header.CamelFileName}")
+    .end();
+----
+
+YAML::
++
+[source,yaml]
+----
+# For parallel processing in YAML, recommend using built-in async mode
+# which is simpler and handles concurrency automatically
+
+- route:
+    from:
+      uri: file:///data/documents
+      parameters:
+        include: ".*\\.pdf"
+    steps:
+      - to:
+          uri: docling:convert
+          parameters:
+            operation: "CONVERT_TO_MARKDOWN"
+            useDoclingServe: true
+            useAsyncMode: true
+            asyncPollInterval: 1000
+            asyncTimeout: 120000
+            contentInBody: true
+      - to:
+          uri: file:///data/output
+          parameters:
+            fileName: "${header.CamelFileName}"
+----
+====
+
+TIP: For a complete working example of custom polling workflow, see the `testCustomPollingWorkflowWithRoute()` test in `DoclingServeProducerIT.java` in the camel-docling test sources.
diff --git a/components/camel-ai/camel-docling/src/main/docs/docling-batch-processing.adoc b/components/camel-ai/camel-docling/src/main/docs/docling-batch-processing.adoc
new file mode 100644
index 000000000000..072fd1a3b6dd
--- /dev/null
+++ b/components/camel-ai/camel-docling/src/main/docs/docling-batch-processing.adoc
@@ -0,0 +1,700 @@
+= Docling - Batch Processing
+:tabs-sync-option:
+
+xref:ROOT:docling-component.adoc[Back to Docling Component]
+
+The component supports batch processing of multiple documents when using docling-serve API mode. This is particularly useful for:
+- Processing multiple documents efficiently with parallel execution
+- Queue-based document processing workflows
+- High-volume document conversion scenarios
+- Better resource utilization with configurable parallelism
+
+== Batch Operations
+
+The following batch operations are available (all require `useDoclingServe=true`):
+
+[width="100%",cols="2,4",options="header"]
+|===
+| Operation | Description
+
+| `BATCH_CONVERT_TO_MARKDOWN`
+| Convert multiple documents to Markdown format in parallel
+
+| `BATCH_CONVERT_TO_HTML`
+| Convert multiple documents to HTML format in parallel
+
+| `BATCH_CONVERT_TO_JSON`
+| Convert multiple documents to JSON format in parallel
+
+| `BATCH_EXTRACT_TEXT`
+| Extract text from multiple documents in parallel
+
+| `BATCH_EXTRACT_STRUCTURED_DATA`
+| Extract structured data from multiple documents in parallel with table structure recognition enabled by default
+
+|===
+
+== Basic Batch Processing
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:documents")
+    .process(exchange -> {
+        List<String> documents = Arrays.asList(
+            "/data/doc1.pdf",
+            "/data/doc2.pdf",
+            "/data/doc3.docx"
+        );
+        exchange.getIn().setBody(documents);
+    })
+    .to("docling:convert?" +
+        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
+        "useDoclingServe=true&" +
+        "batchParallelism=4&" +
+        "batchFailOnFirstError=true")
+    .process(exchange -> {
+        BatchProcessingResults results = exchange.getIn().getBody(BatchProcessingResults.class);
+        log.info("Processed {} documents, {} succeeded, {} failed",
+            results.getTotalDocuments(),
+            results.getSuccessCount(),
+            results.getFailureCount());
+
+        // Access individual results
+        for (BatchConversionResult result : results.getResults()) {
+            if (result.isSuccess()) {
+                log.info("Document {}: {}", result.getOriginalPath(), result.getResult());
+            } else {
+                log.error("Document {} failed: {}", result.getOriginalPath(), result.getErrorMessage());
+            }
+        }
+    });
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    id: batch-convert
+    from:
+      uri: direct:documents
+    steps:
+      - to:
+          uri: docling:convert
+          parameters:
+            operation: "BATCH_CONVERT_TO_MARKDOWN"
+            useDoclingServe: true
+            batchParallelism: 4
+            batchFailOnFirstError: true
+      - log:
+          message: "Processed ${header.CamelDoclingBatchSuccessCount}/${header.CamelDoclingBatchTotalDocuments} documents successfully"
+      - split:
+          expression:
+            simple:
+              expression: "${body.results}"
+          steps:
+            - choice:
+                when:
+                  - expression:
+                      simple:
+                        expression: "${body.success}"
+                    steps:
+                      - to:
+                          uri: file:///data/output
+                          parameters:
+                            fileName: "${body.documentId}.md"
+                otherwise:
+                  steps:
+                    - log:
+                        message: "Failed: ${body.originalPath} - ${body.errorMessage}"
+----
+====
+
+== Queue-Based Batch Processing
+
+This example shows a queue-based batch processing workflow:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+// Route 1: Collect documents from file system and send to queue
+from("file:///data/incoming?noop=true&maxMessagesPerPoll=50")
+    .convertBodyTo(String.class)
+    .setHeader("documentPath", simple("${body}"))
+    .to("seda:document-queue?waitForTaskToComplete=Never");
+
+// Route 2: Aggregate documents from queue into batches
+from("seda:document-queue?concurrentConsumers=1")
+    .aggregate(constant(true))
+        .completionSize(10)          // Batch size
+        .completionTimeout(5000)     // Or timeout after 5 seconds
+    .process(exchange -> {
+        // Convert aggregated exchanges to document list
+        @SuppressWarnings("unchecked")
+        List<Exchange> exchanges = exchange.getProperty(Exchange.GROUPED_EXCHANGE, List.class);
+        List<String> documentPaths = exchanges.stream()
+            .map(e -> e.getIn().getHeader("documentPath", String.class))
+            .collect(Collectors.toList());
+        exchange.getIn().setBody(documentPaths);
+    })
+    .to("direct:batch-process");
+
+// Route 3: Process batch with docling
+from("direct:batch-process")
+    .to("docling:convert?" +
+        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
+        "useDoclingServe=true&" +
+        "batchParallelism=5&" +
+        "batchFailOnFirstError=false")
+    .process(exchange -> {
+        BatchProcessingResults results = exchange.getIn().getBody(BatchProcessingResults.class);
+        log.info("Batch completed: {}/{} successful",
+            results.getSuccessCount(), results.getTotalDocuments());
+    })
+    .split(simple("${body.results}"))
+        .choice()
+            .when(simple("${body.success}"))
+                .to("file:///data/output?fileName=${body.documentId}.md")
+            .otherwise()
+                .to("file:///data/failed?fileName=${body.documentId}.error");
+----
+
+YAML::
++
+[source,yaml]
+----
+# Define beans for processing
+- beans:
+  - name: documentListProcessor
+    type: "#class:org.apache.camel.processor.aggregate.GroupedBodyAggregationStrategy"
+    properties:
+      strategyMethodName: "aggregate"
+
+# Route 1: Collect documents
+- route:
+    from:
+      uri: file:///data/incoming
+      parameters:
+        noop: true
+        maxMessagesPerPoll: 50
+    steps:
+      - convertBodyTo:
+          type: "java.lang.String"
+      - setHeader:
+          name: "documentPath"
+          expression:
+            simple:
+              expression: "${body}"
+      - to:
+          uri: seda:document-queue
+          parameters:
+            waitForTaskToComplete: "Never"
+
+# Route 2: Aggregate into batches
+- route:
+    from:
+      uri: seda:document-queue
+      parameters:
+        concurrentConsumers: 1
+    steps:
+      - aggregate:
+          aggregationStrategy:
+            bean: "documentListProcessor"
+          correlationExpression:
+            constant: true
+          completionSize: 10
+          completionTimeout: 5000
+      - to:
+          uri: direct:batch-process
+
+# Route 3: Process batch
+- route:
+    from:
+      uri: direct:batch-process
+    steps:
+      - to:
+          uri: docling:convert
+          parameters:
+            operation: "BATCH_CONVERT_TO_MARKDOWN"
+            useDoclingServe: true
+            batchParallelism: 5
+            batchFailOnFirstError: false
+      - split:
+          expression:
+            simple:
+              expression: "${body.results}"
+          steps:
+            - choice:
+                when:
+                  - expression:
+                      simple:
+                        expression: "${body.success}"
+                    steps:
+                      - to:
+                          uri: file:///data/output
+                          parameters:
+                            fileName: "${body.documentId}.md"
+                otherwise:
+                  steps:
+                    - to:
+                        uri: file:///data/failed
+                        parameters:
+                          fileName: "${body.documentId}.error"
+----
+====
+
+NOTE: For the aggregation example above, you can also use a custom processor. Create a Java class:
+
+._Java-only: Processor implementation_
+
+[source,java]
+----
+public class DocumentListProcessor implements Processor {
+    @Override
+    public void process(Exchange exchange) throws Exception {
+        @SuppressWarnings("unchecked")
+        List<Exchange> exchanges = exchange.getProperty(Exchange.GROUPED_EXCHANGE, List.class);
+        List<String> documentPaths = exchanges.stream()
+            .map(e -> e.getIn().getHeader("documentPath", String.class))
+            .collect(Collectors.toList());
+        exchange.getIn().setBody(documentPaths);
+    }
+}
+----
+
+Then reference it in the YAML:
+
+[source,yaml]
+----
+- beans:
+  - name: documentListProcessor
+    type: "com.example.DocumentListProcessor"
+----
+
+== Batch Processing with Error Handling
+
+Control how errors are handled during batch processing:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+// Fail entire batch on first error
+from("direct:batch-strict")
+    .to("docling:convert?" +
+        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
+        "useDoclingServe=true&" +
+        "batchFailOnFirstError=true")
+    .log("All documents converted successfully");
+
+// Continue processing on errors
+from("direct:batch-lenient")
+    .to("docling:convert?" +
+        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
+        "useDoclingServe=true&" +
+        "batchFailOnFirstError=false")
+    .process(exchange -> {
+        BatchProcessingResults results = exchange.getIn().getBody(BatchProcessingResults.class);
+
+        if (results.hasAnyFailures()) {
+            log.warn("Batch completed with {} failures", results.getFailureCount());
+
+            // Handle failed documents
+            for (BatchConversionResult failure : results.getFailed()) {
+                log.error("Failed: {} - {}",
+                    failure.getOriginalPath(),
+                    failure.getErrorMessage());
+            }
+        }
+    });
+----
+
+YAML::
++
+[source,yaml]
+----
+# Fail on first error
+- route:
+    id: batch-strict
+    from:
+      uri: direct:batch-strict
+    steps:
+      - to:
+          uri: docling:convert
+          parameters:
+            operation: "BATCH_CONVERT_TO_MARKDOWN"
+            useDoclingServe: true
+            batchFailOnFirstError: true
+      - log:
+          message: "All documents converted successfully"
+
+# Continue on errors and process failures
+- route:
+    id: batch-lenient
+    from:
+      uri: direct:batch-lenient
+    steps:
+      - to:
+          uri: docling:convert
+          parameters:
+            operation: "BATCH_CONVERT_TO_MARKDOWN"
+            useDoclingServe: true
+            batchFailOnFirstError: false
+      - log:
+          message: "Batch completed: ${header.CamelDoclingBatchSuccessCount} succeeded, ${header.CamelDoclingBatchFailureCount} failed"
+      - choice:
+          when:
+            - expression:
+                simple:
+                  expression: "${header.CamelDoclingBatchFailureCount} > 0"
+              steps:
+                - split:
+                    expression:
+                      simple:
+                        expression: "${body.failed}"
+                    steps:
+                      - log:
+                          message: "Failed document: ${body.originalPath} - ${body.errorMessage}"
+                      - to:
+                          uri: file:///data/failed
+                          parameters:
+                            fileName: "${body.documentId}.error"
+          otherwise:
+            steps:
+              - log:
+                  message: "All documents processed successfully"
+----
+====
+
+== Batch Configuration Parameters
+
+[width="100%",cols="2,1,4",options="header"]
+|===
+| Parameter | Default | Description
+
+| `batchSize`
+| 10
+| Maximum number of documents in a single batch
+
+| `batchParallelism`
+| 4
+| Number of parallel threads for processing documents
+
+| `batchFailOnFirstError`
+| true
+| If true, fail entire batch on first error; if false, continue processing
+
+| `batchTimeout`
+| 300000
+| Maximum time to wait for batch completion in milliseconds
+
+| `splitBatchResults`
+| false
+| Split batch results into individual exchanges (List) instead of single BatchProcessingResults object
+
+|===
+
+== Batch Processing Headers
+
+Headers can be used to override batch configuration per-message:
+
+[width="100%",cols="2,1,4",options="header"]
+|===
+| Header | Type | Description
+
+| `CamelDoclingBatchSize`
+| Integer
+| Override batch size for this operation
+
+| `CamelDoclingBatchParallelism`
+| Integer
+| Override parallelism for this operation
+
+| `CamelDoclingBatchFailOnFirstError`
+| Boolean
+| Override fail-on-first-error setting
+
+| `CamelDoclingBatchTimeout`
+| Long
+| Override batch timeout in milliseconds
+
+| `CamelDoclingBatchTotalDocuments`
+| Integer
+| Total documents in batch (output header)
+
+| `CamelDoclingBatchSuccessCount`
+| Integer
+| Number of successful conversions (output header)
+
+| `CamelDoclingBatchFailureCount`
+| Integer
+| Number of failed conversions (output header)
+
+| `CamelDoclingBatchProcessingTime`
+| Long
+| Total processing time in milliseconds (output header)
+
+| `CamelDoclingBatchSplitResults`
+| Boolean
+| Override splitBatchResults setting for this operation
+
+|===
+
+== Input Formats for Batch Processing
+
+The batch operations accept multiple input formats:
+
+._Java-only: Java collection types_
+
+[source,java]
+----
+// List of file paths
+List<String> paths = Arrays.asList("/data/doc1.pdf", "/data/doc2.pdf");
+
+// List of File objects
+List<File> files = Arrays.asList(new File("doc1.pdf"), new File("doc2.pdf"));
+
+// Array of paths
+String[] pathArray = {"/data/doc1.pdf", "/data/doc2.pdf"};
+
+// Array of File objects
+File[] fileArray = {new File("doc1.pdf"), new File("doc2.pdf")};
+
+// Directory path (processes all files in directory)
+String dirPath = "/data/documents";
+----
+
+== BatchProcessingResults Object
+
+The batch operations return a `BatchProcessingResults` object with:
+
+**Properties:**
+- `results`: List of individual BatchConversionResult objects
+- `totalDocuments`: Total number of documents processed
+- `successCount`: Number of successful conversions
+- `failureCount`: Number of failed conversions
+- `totalProcessingTimeMs`: Total processing time in milliseconds
+
+**Helper Methods:**
+- `getSuccessful()`: Returns list of successful results
+- `getFailed()`: Returns list of failed results
+- `isAllSuccessful()`: Returns true if all documents succeeded
+- `hasAnySuccessful()`: Returns true if at least one document succeeded
+- `hasAnyFailures()`: Returns true if at least one document failed
+- `getSuccessRate()`: Returns success rate as percentage (0.0-100.0)
+
+**BatchConversionResult Properties:**
+- `documentId`: Unique identifier for the document
+- `originalPath`: Original file path or URL
+- `result`: Converted content (if successful)
+- `success`: Whether conversion succeeded
+- `errorMessage`: Error message (if failed)
+- `processingTimeMs`: Processing time for this document
+- `batchIndex`: Index in the batch (0-based)
+
+== Splitting Batch Results into Individual Exchanges
+
+By default, batch operations return a single `BatchProcessingResults` object containing all results. You can enable `splitBatchResults=true` to return a `List<BatchConversionResult>` instead, allowing you to process each document individually using Camel's split EIP.
+
+**Use Cases:**
+- Process each document result independently
+- Route successful and failed documents to different destinations
+- Apply individual transformations per document
+- Integrate with streaming or async processing patterns
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+// Example 1: Split and process each document individually
+from("direct:batch-documents")
+    .to("docling:convert?" +
+        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
+        "useDoclingServe=true&" +
+        "splitBatchResults=true&" +
+        "contentInBody=true")
+    .split(body())
+        .process(exchange -> {
+            BatchConversionResult result = exchange.getIn().getBody(BatchConversionResult.class);
+            log.info("Processing document: {}", result.getDocumentId());
+
+            if (result.isSuccess()) {
+                // Process successful conversion
+                String content = result.getResult();
+                // ... do something with content
+            } else {
+                // Handle failed conversion
+                log.error("Failed to convert {}: {}",
+                    result.getOriginalPath(), result.getErrorMessage());
+            }
+        })
+    .end();
+
+// Example 2: Route based on success/failure
+from("direct:batch-with-routing")
+    .to("docling:convert?" +
+        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
+        "useDoclingServe=true&" +
+        "splitBatchResults=true&" +
+        "batchFailOnFirstError=false&" +
+        "contentInBody=true")
+    .split(body())
+        .choice()
+            .when(simple("${body.success} == true"))
+                .log("Success: ${body.documentId}")
+                .to("file:///data/success?fileName=${body.documentId}.md")
+            .otherwise()
+                .log("Failed: ${body.documentId} - ${body.errorMessage}")
+                .to("file:///data/failed?fileName=${body.documentId}.error")
+        .end()
+    .end();
+
+// Example 3: Parallel processing with threads
+from("direct:batch-parallel-individual")
+    .to("docling:convert?" +
+        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
+        "useDoclingServe=true&" +
+        "splitBatchResults=true&" +
+        "contentInBody=true")
+    .split(body())
+        .parallelProcessing()
+        .threads(5)
+        .process(exchange -> {
+            BatchConversionResult result = exchange.getIn().getBody(BatchConversionResult.class);
+            // Process each document in parallel
+            processDocument(result);
+        })
+    .end();
+----
+
+YAML::
++
+[source,yaml]
+----
+# Example 1: Split and route based on success
+- route:
+    from:
+      uri: direct:batch-with-split
+    steps:
+      - to:
+          uri: docling:convert
+          parameters:
+            operation: "BATCH_CONVERT_TO_MARKDOWN"
+            useDoclingServe: true
+            splitBatchResults: true
+            contentInBody: true
+      - split:
+          expression:
+            simple:
+              expression: "${body}"
+          steps:
+            - choice:
+                when:
+                  - expression:
+                      simple:
+                        expression: "${body.success}"
+                    steps:
+                      - log:
+                          message: "Success: ${body.documentId}"
+                      - to:
+                          uri: file:///data/success
+                          parameters:
+                            fileName: "${body.documentId}.md"
+                otherwise:
+                  steps:
+                    - log:
+                        message: "Failed: ${body.documentId}"
+                    - to:
+                        uri: file:///data/failed
+                        parameters:
+                          fileName: "${body.documentId}.error"
+
+# Example 2: Split with parallel processing
+- route:
+    id: batch-split-parallel
+    from:
+      uri: direct:batch-parallel
+    steps:
+      - to:
+          uri: docling:convert
+          parameters:
+            operation: "BATCH_CONVERT_TO_MARKDOWN"
+            useDoclingServe: true
+            splitBatchResults: true
+            batchParallelism: 4
+            contentInBody: true
+      - split:
+          expression:
+            simple:
+              expression: "${body}"
+          parallelProcessing: true
+          steps:
+            - log:
+                message: "Processing document ${body.documentId} (index ${body.batchIndex})"
+            - choice:
+                when:
+                  - expression:
+                      simple:
+                        expression: "${body.success}"
+                    steps:
+                      - log:
+                          message: "Successfully converted ${body.documentId}"
+                      - to:
+                          uri: file:///data/processed
+                          parameters:
+                            fileName: "${body.documentId}.md"
+                otherwise:
+                  steps:
+                    - log:
+                        message: "Failed to convert ${body.documentId}: ${body.errorMessage}"
+                    - to:
+                        uri: file:///data/errors
+                        parameters:
+                          fileName: "${body.documentId}.error"
+----
+====
+
+**Comparison: BatchProcessingResults vs Split Results**
+
+[width="100%",cols="3,3,3",options="header"]
+|===
+| Scenario | splitBatchResults=false | splitBatchResults=true
+
+| Return type
+| `BatchProcessingResults`
+| `List<BatchConversionResult>`
+
+| Number of exchanges
+| 1 exchange with all results
+| Use `.split(body())` to create 1 exchange per document
+
+| Use case
+| Aggregate statistics, batch-level processing
+| Individual document processing, routing per result
+
+| Access to batch stats
+| Direct via object methods
+| Via headers (CamelDoclingBatch*)
+
+| Camel pattern
+| Process entire batch together
+| Split and process individually
+
+|===
+
+**Note:** When using `splitBatchResults=true`, batch statistics are still available via headers:
+- `CamelDoclingBatchTotalDocuments`
+- `CamelDoclingBatchSuccessCount`
+- `CamelDoclingBatchFailureCount`
+- `CamelDoclingBatchProcessingTime`
diff --git a/components/camel-ai/camel-docling/src/main/docs/docling-component.adoc b/components/camel-ai/camel-docling/src/main/docs/docling-component.adoc
index ff426ef9d0cd..57f77bddea62 100644
--- a/components/camel-ai/camel-docling/src/main/docs/docling-component.adoc
+++ b/components/camel-ai/camel-docling/src/main/docs/docling-component.adoc
@@ -747,1454 +747,29 @@ public class CustomArgsBean {
 }
 ----
 
-== Batch Processing
-
-The component supports batch processing of multiple documents when using docling-serve API mode. This is particularly useful for:
-- Processing multiple documents efficiently with parallel execution
-- Queue-based document processing workflows
-- High-volume document conversion scenarios
-- Better resource utilization with configurable parallelism
-
-=== Batch Operations
-
-The following batch operations are available (all require `useDoclingServe=true`):
-
-[width="100%",cols="2,4",options="header"]
-|===
-| Operation | Description
-
-| `BATCH_CONVERT_TO_MARKDOWN`
-| Convert multiple documents to Markdown format in parallel
-
-| `BATCH_CONVERT_TO_HTML`
-| Convert multiple documents to HTML format in parallel
-
-| `BATCH_CONVERT_TO_JSON`
-| Convert multiple documents to JSON format in parallel
-
-| `BATCH_EXTRACT_TEXT`
-| Extract text from multiple documents in parallel
-
-| `BATCH_EXTRACT_STRUCTURED_DATA`
-| Extract structured data from multiple documents in parallel with table structure recognition enabled by default
-
-|===
-
-=== Basic Batch Processing
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:documents")
-    .process(exchange -> {
-        List<String> documents = Arrays.asList(
-            "/data/doc1.pdf",
-            "/data/doc2.pdf",
-            "/data/doc3.docx"
-        );
-        exchange.getIn().setBody(documents);
-    })
-    .to("docling:convert?" +
-        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
-        "useDoclingServe=true&" +
-        "batchParallelism=4&" +
-        "batchFailOnFirstError=true")
-    .process(exchange -> {
-        BatchProcessingResults results = exchange.getIn().getBody(BatchProcessingResults.class);
-        log.info("Processed {} documents, {} succeeded, {} failed",
-            results.getTotalDocuments(),
-            results.getSuccessCount(),
-            results.getFailureCount());
-
-        // Access individual results
-        for (BatchConversionResult result : results.getResults()) {
-            if (result.isSuccess()) {
-                log.info("Document {}: {}", result.getOriginalPath(), result.getResult());
-            } else {
-                log.error("Document {} failed: {}", result.getOriginalPath(), result.getErrorMessage());
-            }
-        }
-    });
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    id: batch-convert
-    from:
-      uri: direct:documents
-    steps:
-      - to:
-          uri: docling:convert
-          parameters:
-            operation: "BATCH_CONVERT_TO_MARKDOWN"
-            useDoclingServe: true
-            batchParallelism: 4
-            batchFailOnFirstError: true
-      - log:
-          message: "Processed ${header.CamelDoclingBatchSuccessCount}/${header.CamelDoclingBatchTotalDocuments} documents successfully"
-      - split:
-          expression:
-            simple:
-              expression: "${body.results}"
-          steps:
-            - choice:
-                when:
-                  - expression:
-                      simple:
-                        expression: "${body.success}"
-                    steps:
-                      - to:
-                          uri: file:///data/output
-                          parameters:
-                            fileName: "${body.documentId}.md"
-                otherwise:
-                  steps:
-                    - log:
-                        message: "Failed: ${body.originalPath} - ${body.errorMessage}"
-----
-====
-
-=== Queue-Based Batch Processing
-
-This example shows a queue-based batch processing workflow:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-// Route 1: Collect documents from file system and send to queue
-from("file:///data/incoming?noop=true&maxMessagesPerPoll=50")
-    .convertBodyTo(String.class)
-    .setHeader("documentPath", simple("${body}"))
-    .to("seda:document-queue?waitForTaskToComplete=Never");
-
-// Route 2: Aggregate documents from queue into batches
-from("seda:document-queue?concurrentConsumers=1")
-    .aggregate(constant(true))
-        .completionSize(10)          // Batch size
-        .completionTimeout(5000)     // Or timeout after 5 seconds
-    .process(exchange -> {
-        // Convert aggregated exchanges to document list
-        @SuppressWarnings("unchecked")
-        List<Exchange> exchanges = exchange.getProperty(Exchange.GROUPED_EXCHANGE, List.class);
-        List<String> documentPaths = exchanges.stream()
-            .map(e -> e.getIn().getHeader("documentPath", String.class))
-            .collect(Collectors.toList());
-        exchange.getIn().setBody(documentPaths);
-    })
-    .to("direct:batch-process");
-
-// Route 3: Process batch with docling
-from("direct:batch-process")
-    .to("docling:convert?" +
-        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
-        "useDoclingServe=true&" +
-        "batchParallelism=5&" +
-        "batchFailOnFirstError=false")
-    .process(exchange -> {
-        BatchProcessingResults results = exchange.getIn().getBody(BatchProcessingResults.class);
-        log.info("Batch completed: {}/{} successful",
-            results.getSuccessCount(), results.getTotalDocuments());
-    })
-    .split(simple("${body.results}"))
-        .choice()
-            .when(simple("${body.success}"))
-                .to("file:///data/output?fileName=${body.documentId}.md")
-            .otherwise()
-                .to("file:///data/failed?fileName=${body.documentId}.error");
-----
-
-YAML::
-+
-[source,yaml]
-----
-# Define beans for processing
-- beans:
-  - name: documentListProcessor
-    type: "#class:org.apache.camel.processor.aggregate.GroupedBodyAggregationStrategy"
-    properties:
-      strategyMethodName: "aggregate"
-
-# Route 1: Collect documents
-- route:
-    from:
-      uri: file:///data/incoming
-      parameters:
-        noop: true
-        maxMessagesPerPoll: 50
-    steps:
-      - convertBodyTo:
-          type: "java.lang.String"
-      - setHeader:
-          name: "documentPath"
-          expression:
-            simple:
-              expression: "${body}"
-      - to:
-          uri: seda:document-queue
-          parameters:
-            waitForTaskToComplete: "Never"
-
-# Route 2: Aggregate into batches
-- route:
-    from:
-      uri: seda:document-queue
-      parameters:
-        concurrentConsumers: 1
-    steps:
-      - aggregate:
-          aggregationStrategy:
-            bean: "documentListProcessor"
-          correlationExpression:
-            constant: true
-          completionSize: 10
-          completionTimeout: 5000
-      - to:
-          uri: direct:batch-process
-
-# Route 3: Process batch
-- route:
-    from:
-      uri: direct:batch-process
-    steps:
-      - to:
-          uri: docling:convert
-          parameters:
-            operation: "BATCH_CONVERT_TO_MARKDOWN"
-            useDoclingServe: true
-            batchParallelism: 5
-            batchFailOnFirstError: false
-      - split:
-          expression:
-            simple:
-              expression: "${body.results}"
-          steps:
-            - choice:
-                when:
-                  - expression:
-                      simple:
-                        expression: "${body.success}"
-                    steps:
-                      - to:
-                          uri: file:///data/output
-                          parameters:
-                            fileName: "${body.documentId}.md"
-                otherwise:
-                  steps:
-                    - to:
-                        uri: file:///data/failed
-                        parameters:
-                          fileName: "${body.documentId}.error"
-----
-====
-
-NOTE: For the aggregation example above, you can also use a custom processor. Create a Java class:
-
-._Java-only: Processor implementation_
-
-[source,java]
-----
-public class DocumentListProcessor implements Processor {
-    @Override
-    public void process(Exchange exchange) throws Exception {
-        @SuppressWarnings("unchecked")
-        List<Exchange> exchanges = exchange.getProperty(Exchange.GROUPED_EXCHANGE, List.class);
-        List<String> documentPaths = exchanges.stream()
-            .map(e -> e.getIn().getHeader("documentPath", String.class))
-            .collect(Collectors.toList());
-        exchange.getIn().setBody(documentPaths);
-    }
-}
-----
-
-Then reference it in the YAML:
-
-[source,yaml]
-----
-- beans:
-  - name: documentListProcessor
-    type: "com.example.DocumentListProcessor"
-----
-
-=== Batch Processing with Error Handling
-
-Control how errors are handled during batch processing:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-// Fail entire batch on first error
-from("direct:batch-strict")
-    .to("docling:convert?" +
-        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
-        "useDoclingServe=true&" +
-        "batchFailOnFirstError=true")
-    .log("All documents converted successfully");
-
-// Continue processing on errors
-from("direct:batch-lenient")
-    .to("docling:convert?" +
-        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
-        "useDoclingServe=true&" +
-        "batchFailOnFirstError=false")
-    .process(exchange -> {
-        BatchProcessingResults results = exchange.getIn().getBody(BatchProcessingResults.class);
-
-        if (results.hasAnyFailures()) {
-            log.warn("Batch completed with {} failures", results.getFailureCount());
-
-            // Handle failed documents
-            for (BatchConversionResult failure : results.getFailed()) {
-                log.error("Failed: {} - {}",
-                    failure.getOriginalPath(),
-                    failure.getErrorMessage());
-            }
-        }
-    });
-----
-
-YAML::
-+
-[source,yaml]
-----
-# Fail on first error
-- route:
-    id: batch-strict
-    from:
-      uri: direct:batch-strict
-    steps:
-      - to:
-          uri: docling:convert
-          parameters:
-            operation: "BATCH_CONVERT_TO_MARKDOWN"
-            useDoclingServe: true
-            batchFailOnFirstError: true
-      - log:
-          message: "All documents converted successfully"
-
-# Continue on errors and process failures
-- route:
-    id: batch-lenient
-    from:
-      uri: direct:batch-lenient
-    steps:
-      - to:
-          uri: docling:convert
-          parameters:
-            operation: "BATCH_CONVERT_TO_MARKDOWN"
-            useDoclingServe: true
-            batchFailOnFirstError: false
-      - log:
-          message: "Batch completed: ${header.CamelDoclingBatchSuccessCount} succeeded, ${header.CamelDoclingBatchFailureCount} failed"
-      - choice:
-          when:
-            - expression:
-                simple:
-                  expression: "${header.CamelDoclingBatchFailureCount} > 0"
-              steps:
-                - split:
-                    expression:
-                      simple:
-                        expression: "${body.failed}"
-                    steps:
-                      - log:
-                          message: "Failed document: ${body.originalPath} - ${body.errorMessage}"
-                      - to:
-                          uri: file:///data/failed
-                          parameters:
-                            fileName: "${body.documentId}.error"
-          otherwise:
-            steps:
-              - log:
-                  message: "All documents processed successfully"
-----
-====
-
-=== Batch Configuration Parameters
-
-[width="100%",cols="2,1,4",options="header"]
-|===
-| Parameter | Default | Description
-
-| `batchSize`
-| 10
-| Maximum number of documents in a single batch
-
-| `batchParallelism`
-| 4
-| Number of parallel threads for processing documents
-
-| `batchFailOnFirstError`
-| true
-| If true, fail entire batch on first error; if false, continue processing
-
-| `batchTimeout`
-| 300000
-| Maximum time to wait for batch completion in milliseconds
-
-| `splitBatchResults`
-| false
-| Split batch results into individual exchanges (List) instead of single BatchProcessingResults object
-
-|===
-
-=== Batch Processing Headers
-
-Headers can be used to override batch configuration per-message:
-
-[width="100%",cols="2,1,4",options="header"]
-|===
-| Header | Type | Description
-
-| `CamelDoclingBatchSize`
-| Integer
-| Override batch size for this operation
-
-| `CamelDoclingBatchParallelism`
-| Integer
-| Override parallelism for this operation
-
-| `CamelDoclingBatchFailOnFirstError`
-| Boolean
-| Override fail-on-first-error setting
-
-| `CamelDoclingBatchTimeout`
-| Long
-| Override batch timeout in milliseconds
-
-| `CamelDoclingBatchTotalDocuments`
-| Integer
-| Total documents in batch (output header)
-
-| `CamelDoclingBatchSuccessCount`
-| Integer
-| Number of successful conversions (output header)
-
-| `CamelDoclingBatchFailureCount`
-| Integer
-| Number of failed conversions (output header)
-
-| `CamelDoclingBatchProcessingTime`
-| Long
-| Total processing time in milliseconds (output header)
-
-| `CamelDoclingBatchSplitResults`
-| Boolean
-| Override splitBatchResults setting for this operation
-
-|===
-
-=== Input Formats for Batch Processing
-
-The batch operations accept multiple input formats:
-
-._Java-only: Java collection types_
-
-[source,java]
-----
-// List of file paths
-List<String> paths = Arrays.asList("/data/doc1.pdf", "/data/doc2.pdf");
-
-// List of File objects
-List<File> files = Arrays.asList(new File("doc1.pdf"), new File("doc2.pdf"));
-
-// Array of paths
-String[] pathArray = {"/data/doc1.pdf", "/data/doc2.pdf"};
-
-// Array of File objects
-File[] fileArray = {new File("doc1.pdf"), new File("doc2.pdf")};
-
-// Directory path (processes all files in directory)
-String dirPath = "/data/documents";
-----
-
-=== BatchProcessingResults Object
-
-The batch operations return a `BatchProcessingResults` object with:
-
-**Properties:**
-- `results`: List of individual BatchConversionResult objects
-- `totalDocuments`: Total number of documents processed
-- `successCount`: Number of successful conversions
-- `failureCount`: Number of failed conversions
-- `totalProcessingTimeMs`: Total processing time in milliseconds
-
-**Helper Methods:**
-- `getSuccessful()`: Returns list of successful results
-- `getFailed()`: Returns list of failed results
-- `isAllSuccessful()`: Returns true if all documents succeeded
-- `hasAnySuccessful()`: Returns true if at least one document succeeded
-- `hasAnyFailures()`: Returns true if at least one document failed
-- `getSuccessRate()`: Returns success rate as percentage (0.0-100.0)
-
-**BatchConversionResult Properties:**
-- `documentId`: Unique identifier for the document
-- `originalPath`: Original file path or URL
-- `result`: Converted content (if successful)
-- `success`: Whether conversion succeeded
-- `errorMessage`: Error message (if failed)
-- `processingTimeMs`: Processing time for this document
-- `batchIndex`: Index in the batch (0-based)
-
-=== Splitting Batch Results into Individual Exchanges
-
-By default, batch operations return a single `BatchProcessingResults` object containing all results. You can enable `splitBatchResults=true` to return a `List<BatchConversionResult>` instead, allowing you to process each document individually using Camel's split EIP.
-
-**Use Cases:**
-- Process each document result independently
-- Route successful and failed documents to different destinations
-- Apply individual transformations per document
-- Integrate with streaming or async processing patterns
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-// Example 1: Split and process each document individually
-from("direct:batch-documents")
-    .to("docling:convert?" +
-        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
-        "useDoclingServe=true&" +
-        "splitBatchResults=true&" +
-        "contentInBody=true")
-    .split(body())
-        .process(exchange -> {
-            BatchConversionResult result = exchange.getIn().getBody(BatchConversionResult.class);
-            log.info("Processing document: {}", result.getDocumentId());
-
-            if (result.isSuccess()) {
-                // Process successful conversion
-                String content = result.getResult();
-                // ... do something with content
-            } else {
-                // Handle failed conversion
-                log.error("Failed to convert {}: {}",
-                    result.getOriginalPath(), result.getErrorMessage());
-            }
-        })
-    .end();
-
-// Example 2: Route based on success/failure
-from("direct:batch-with-routing")
-    .to("docling:convert?" +
-        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
-        "useDoclingServe=true&" +
-        "splitBatchResults=true&" +
-        "batchFailOnFirstError=false&" +
-        "contentInBody=true")
-    .split(body())
-        .choice()
-            .when(simple("${body.success} == true"))
-                .log("Success: ${body.documentId}")
-                .to("file:///data/success?fileName=${body.documentId}.md")
-            .otherwise()
-                .log("Failed: ${body.documentId} - ${body.errorMessage}")
-                .to("file:///data/failed?fileName=${body.documentId}.error")
-        .end()
-    .end();
-
-// Example 3: Parallel processing with threads
-from("direct:batch-parallel-individual")
-    .to("docling:convert?" +
-        "operation=BATCH_CONVERT_TO_MARKDOWN&" +
-        "useDoclingServe=true&" +
-        "splitBatchResults=true&" +
-        "contentInBody=true")
-    .split(body())
-        .parallelProcessing()
-        .threads(5)
-        .process(exchange -> {
-            BatchConversionResult result = exchange.getIn().getBody(BatchConversionResult.class);
-            // Process each document in parallel
-            processDocument(result);
-        })
-    .end();
-----
-
-YAML::
-+
-[source,yaml]
-----
-# Example 1: Split and route based on success
-- route:
-    from:
-      uri: direct:batch-with-split
-    steps:
-      - to:
-          uri: docling:convert
-          parameters:
-            operation: "BATCH_CONVERT_TO_MARKDOWN"
-            useDoclingServe: true
-            splitBatchResults: true
-            contentInBody: true
-      - split:
-          expression:
-            simple:
-              expression: "${body}"
-          steps:
-            - choice:
-                when:
-                  - expression:
-                      simple:
-                        expression: "${body.success}"
-                    steps:
-                      - log:
-                          message: "Success: ${body.documentId}"
-                      - to:
-                          uri: file:///data/success
-                          parameters:
-                            fileName: "${body.documentId}.md"
-                otherwise:
-                  steps:
-                    - log:
-                        message: "Failed: ${body.documentId}"
-                    - to:
-                        uri: file:///data/failed
-                        parameters:
-                          fileName: "${body.documentId}.error"
-
-# Example 2: Split with parallel processing
-- route:
-    id: batch-split-parallel
-    from:
-      uri: direct:batch-parallel
-    steps:
-      - to:
-          uri: docling:convert
-          parameters:
-            operation: "BATCH_CONVERT_TO_MARKDOWN"
-            useDoclingServe: true
-            splitBatchResults: true
-            batchParallelism: 4
-            contentInBody: true
-      - split:
-          expression:
-            simple:
-              expression: "${body}"
-          parallelProcessing: true
-          steps:
-            - log:
-                message: "Processing document ${body.documentId} (index ${body.batchIndex})"
-            - choice:
-                when:
-                  - expression:
-                      simple:
-                        expression: "${body.success}"
-                    steps:
-                      - log:
-                          message: "Successfully converted ${body.documentId}"
-                      - to:
-                          uri: file:///data/processed
-                          parameters:
-                            fileName: "${body.documentId}.md"
-                otherwise:
-                  steps:
-                    - log:
-                        message: "Failed to convert ${body.documentId}: ${body.errorMessage}"
-                    - to:
-                        uri: file:///data/errors
-                        parameters:
-                          fileName: "${body.documentId}.error"
-----
-====
-
-**Comparison: BatchProcessingResults vs Split Results**
-
-[width="100%",cols="3,3,3",options="header"]
-|===
-| Scenario | splitBatchResults=false | splitBatchResults=true
-
-| Return type
-| `BatchProcessingResults`
-| `List<BatchConversionResult>`
-
-| Number of exchanges
-| 1 exchange with all results
-| Use `.split(body())` to create 1 exchange per document
-
-| Use case
-| Aggregate statistics, batch-level processing
-| Individual document processing, routing per result
-
-| Access to batch stats
-| Direct via object methods
-| Via headers (CamelDoclingBatch*)
-
-| Camel pattern
-| Process entire batch together
-| Split and process individually
-
-|===
-
-**Note:** When using `splitBatchResults=true`, batch statistics are still available via headers:
-- `CamelDoclingBatchTotalDocuments`
-- `CamelDoclingBatchSuccessCount`
-- `CamelDoclingBatchFailureCount`
-- `CamelDoclingBatchProcessingTime`
-
-== Document Chunking
-
-The component supports document chunking via docling-serve, which splits documents into semantically meaningful chunks suitable for RAG (Retrieval-Augmented Generation) pipelines, vector databases, and other NLP workflows. Unlike naive text splitting, docling chunking is structure-aware — it respects document headings, paragraphs, and tables — and the hybrid chunker is also token-aware, ensuring chunks fit within model token limits.
-
-NOTE: Both chunking operations require `useDoclingServe=true`. The Docling CLI does not expose chunking as a command — chunking is only available through the docling-serve REST API.
-
-`CHUNK_HYBRID` uses the HybridChunker, which is both structure-aware and token-aware. It respects document structure while ensuring each chunk stays within a configurable token limit. Best for RAG pipelines with embedding models that have fixed token windows. Configure it with the `chunkingTokenizer`, `chunkingMaxTokens`, and `chunkingMergePeers` options (see the endpoint options table above).
-
-`CHUNK_HIERARCHICAL` uses the HierarchicalChunker, which is structure-aware only. It splits at document structure boundaries (sections, paragraphs) without enforcing token limits. Best when chunk size is less important than preserving complete structural units.
-
-When `contentInBody=true`, the exchange body is set to a `List<Chunk>` (`ai.docling.serve.api.chunk.response.Chunk`), ready for use with Camel's `.split(body())` EIP. Each `Chunk` object provides:
-
-- `text` — the chunk text content
-- `chunkIndex` — zero-based position in the document
-- `filename` — source document filename
-- `headings` — list of heading strings leading to this chunk
-- `pageNumbers` — list of page numbers this chunk spans
-- `captions` — list of captions (e.g., table or figure captions)
-- `numTokens` — token count (hybrid chunker only)
-
-When `contentInBody=false`, the full `ChunkDocumentResponse` is returned.
-
-=== Basic Chunking
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:///data/documents?include=.*\\.pdf")
-    .setHeader("CamelDoclingInputFilePath", simple("${file:absolute.path}"))
-    .to("docling:CHUNK_HYBRID?" +
-        "useDoclingServe=true&" +
-        "contentInBody=true&" +
-        "chunkingTokenizer=sentence-transformers/all-MiniLM-L6-v2&" +
-        "chunkingMaxTokens=128&" +
-        "chunkingMergePeers=true")
-    .split(body())
-        .log("Chunk ${body.chunkIndex}: ${body.text}")
-    .end();
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: file:///data/documents
-      parameters:
-        include: ".*\\.pdf"
-    steps:
-      - setHeader:
-          name: CamelDoclingInputFilePath
-          expression:
-            simple:
-              expression: "${file:absolute.path}"
-      - to:
-          uri: docling:CHUNK_HYBRID
-          parameters:
-            useDoclingServe: true
-            contentInBody: true
-            chunkingTokenizer: "sentence-transformers/all-MiniLM-L6-v2"
-            chunkingMaxTokens: 128
-            chunkingMergePeers: true
-      - split:
-          expression:
-            simple:
-              expression: "${body}"
-          steps:
-            - log:
-                message: "Chunk ${body.chunkIndex}: ${body.text}"
-----
-====
-
-=== Chunking for RAG Pipelines
-
-A common use case is to chunk documents, generate embeddings, and store them in a vector database:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:ingest-pdf")
-    .setHeader("CamelDoclingInputFilePath", header("pdfFilePath"))
-    .to("docling:CHUNK_HYBRID?" +
-        "useDoclingServe=true&" +
-        "contentInBody=true&" +
-        "chunkingTokenizer={{embedding.tokenizer}}&" +
-        "chunkingMaxTokens={{embedding.max-tokens}}&" +
-        "chunkingMergePeers=true")
-    .split(body())
-        .setBody(simple("${body.text}"))
-        .to("openai:embeddings?embeddingModel={{embedding.model}}")
-        // store embedding in vector database
-        .to("direct:store-embedding")
-    .end();
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    id: ingest-pdf
-    from:
-      uri: direct:ingest-pdf
-    steps:
-      - setHeader:
-          name: CamelDoclingInputFilePath
-          expression:
-            simple:
-              expression: "${header.pdfFilePath}"
-      - to:
-          uri: docling:CHUNK_HYBRID
-          parameters:
-            useDoclingServe: true
-            contentInBody: true
-            chunkingTokenizer: "{{embedding.tokenizer}}"
-            chunkingMaxTokens: "{{embedding.max-tokens}}"
-            chunkingMergePeers: true
-      - split:
-          expression:
-            simple:
-              expression: "${body}"
-          steps:
-            - setBody:
-                expression:
-                  simple:
-                    expression: "${body.text}"
-            - to:
-                uri: openai:embeddings
-                parameters:
-                  embeddingModel: "{{embedding.model}}"
-            - to:
-                uri: direct:store-embedding
-----
-====
-
-=== Hierarchical Chunking
-
-Use hierarchical chunking when you want to preserve complete structural units without token limits:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:///data/documents?include=.*\\.pdf")
-    .setHeader("CamelDoclingInputFilePath", simple("${file:absolute.path}"))
-    .to("docling:CHUNK_HIERARCHICAL?" +
-        "useDoclingServe=true&" +
-        "contentInBody=true")
-    .split(body())
-        .log("Section [${body.headings}] page ${body.pageNumbers}: ${body.text}")
-    .end();
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: file:///data/documents
-      parameters:
-        include: ".*\\.pdf"
-    steps:
-      - setHeader:
-          name: CamelDoclingInputFilePath
-          expression:
-            simple:
-              expression: "${file:absolute.path}"
-      - to:
-          uri: docling:CHUNK_HIERARCHICAL
-          parameters:
-            useDoclingServe: true
-            contentInBody: true
-      - split:
-          expression:
-            simple:
-              expression: "${body}"
-          steps:
-            - log:
-                message: "Section [${body.headings}] page ${body.pageNumbers}: ${body.text}"
-----
-====
-
-== Asynchronous Processing
-
-The component supports asynchronous document conversion when using docling-serve API mode. This is particularly useful for:
-- Large documents that take a long time to process
-- High-volume batch processing scenarios
-- Better resource utilization on the server side
-
-=== Enabling Async Mode
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:///data/documents?include=.*\\.pdf")
-    .to("docling:CONVERT_TO_MARKDOWN?" +
-        "useDoclingServe=true&" +
-        "useAsyncMode=true&" +
-        "asyncPollInterval=2000&" +
-        "asyncTimeout=300000&" +
-        "contentInBody=true")
-    .to("file:///data/output");
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: file:///data/documents
-      parameters:
-        include: ".*\\.pdf"
-    steps:
-      - to:
-          uri: docling:CONVERT_TO_MARKDOWN
-          parameters:
-            useDoclingServe: true
-            useAsyncMode: true
-            asyncPollInterval: 2000
-            asyncTimeout: 300000
-            contentInBody: true
-      - to:
-          uri: file:///data/output
-----
-====
-
-=== Async Processing with Custom Timeout
-
-For very large documents, you may need to increase the timeout:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:///data/large-documents?include=.*\\.pdf")
-    .to("docling:CONVERT_TO_MARKDOWN?" +
-        "useDoclingServe=true&" +
-        "useAsyncMode=true&" +
-        "asyncPollInterval=5000&" +
-        "asyncTimeout=600000&" +  // 10 minutes
-        "contentInBody=true")
-    .to("file:///data/output");
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: file:///data/large-documents
-      parameters:
-        include: ".*\\.pdf"
-    steps:
-      - to:
-          uri: docling:CONVERT_TO_MARKDOWN
-          parameters:
-            useDoclingServe: true
-            useAsyncMode: true
-            asyncPollInterval: 5000
-            asyncTimeout: 600000
-            contentInBody: true
-      - to:
-          uri: file:///data/output
-----
-====
-
-=== Using Headers to Control Async Behavior
-
-You can override async settings per-message using headers:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:///data/documents?include=.*\\.pdf")
-    .process(exchange -> {
-        File file = exchange.getIn().getBody(File.class);
-        // Use async mode only for large files
-        if (file.length() > 10 * 1024 * 1024) { // > 10MB
-            exchange.getIn().setHeader("CamelDoclingUseAsyncMode", true);
-            exchange.getIn().setHeader("CamelDoclingAsyncTimeout", 600000L);
-        }
-    })
-    .to("docling:CONVERT_TO_MARKDOWN?useDoclingServe=true&contentInBody=true")
-    .to("file:///data/output");
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: file:///data/documents
-      parameters:
-        include: ".*\\.pdf"
-    steps:
-      - process:
-          ref: "asyncDecisionProcessor"
-      - to:
-          uri: docling:CONVERT_TO_MARKDOWN
-          parameters:
-            useDoclingServe: true
-            contentInBody: true
-      - to:
-          uri: file:///data/output
-----
-====
-
-=== Custom Async Workflows
-
-For advanced use cases, you can use the `SUBMIT_ASYNC_CONVERSION` and `CHECK_CONVERSION_STATUS` operations to build custom async workflows with full control over task submission and status polling.
-
-**When to use custom workflows:**
-
-- You need custom polling intervals that vary per task
-- You want to implement custom retry or backoff strategies
-- You need to coordinate multiple async tasks
-- You want to store task IDs in a database for later retrieval
-- You need fine-grained control over timeout and error handling
-
-**When to use built-in async mode (useAsyncMode=true):**
-
-- Standard use cases where automatic polling is sufficient
-- You want the simplest configuration
-- Default polling intervals and timeouts work for your needs
-
-NOTE: Custom polling workflows require Java processors and are more complex. The built-in async mode (`useAsyncMode=true`) is recommended for most use cases.
-
-==== Simple Manual Polling (Java)
-
-The simplest custom workflow uses a Java loop to poll for status:
-
-._Java-only: Java test API (ProducerTemplate with polling loop)_
-
-[source,java]
-----
-// Submit conversion
-String taskId = template.requestBody(
-    "docling:convert?operation=SUBMIT_ASYNC_CONVERSION&useDoclingServe=true",
-    "/path/to/document.pdf", String.class);
-
-// Poll for completion
-ConversionStatus status;
-int attempts = 0;
-do {
-    Thread.sleep(1000);
-    status = template.requestBody(
-        "docling:convert?operation=CHECK_CONVERSION_STATUS&useDoclingServe=true",
-        taskId, ConversionStatus.class);
-    attempts++;
-} while (status.isInProgress() && attempts < 60);
-
-// Get result
-if (status.isCompleted()) {
-    String result = status.getResult();
-    // Process result...
-}
-----
-
-==== Submit and Poll Pattern (Camel Route)
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-// Submit async conversion and poll until complete
-from("file:///data/documents?include=.*\\.pdf")
-    .log("Starting async conversion for: ${header.CamelFileName}")
-    // Step 1: Submit conversion
-    .to("docling:convert?operation=SUBMIT_ASYNC_CONVERSION&useDoclingServe=true")
-    .log("Submitted conversion with task ID: ${body}")
-    .setHeader("taskId", body())
-    .setProperty("maxAttempts", constant(60))
-    .setProperty("attempt", constant(0))
-    // Step 2: Poll for completion
-    .loopDoWhile(method(MyPollingHelper.class, "shouldContinuePolling"))
-        .process(exchange -> {
-            // Increment attempt counter
-            Integer attempt = exchange.getProperty("attempt", Integer.class);
-            exchange.setProperty("attempt", attempt != null ? attempt + 1 : 1);
-        })
-        .log("Polling attempt ${exchangeProperty.attempt} of ${exchangeProperty.maxAttempts}")
-        .setBody(header("taskId"))
-        .to("docling:convert?operation=CHECK_CONVERSION_STATUS&useDoclingServe=true")
-        .setProperty("conversionStatus", body())
-        .process(exchange -> {
-            ConversionStatus status = exchange.getProperty("conversionStatus", ConversionStatus.class);
-            if (status.isCompleted()) {
-                exchange.setProperty("isCompleted", true);
-            } else if (status.isFailed()) {
-                exchange.setProperty("isFailed", true);
-                exchange.setProperty("errorMessage", status.getErrorMessage());
-            }
-        })
-        .choice()
-            .when(exchangeProperty("isCompleted").isEqualTo(true))
-                .stop()
-            .when(exchangeProperty("isFailed").isEqualTo(true))
-                .throwException(new RuntimeException("Conversion failed"))
-        .end()
-        .delay(1000)
-    .end()
-    // Step 3: Extract result
-    .process(exchange -> {
-        ConversionStatus status = exchange.getProperty("conversionStatus", ConversionStatus.class);
-        if (status != null && status.isCompleted() && status.getResult() != null) {
-            exchange.getIn().setBody(status.getResult());
-        } else {
-            throw new RuntimeException("Conversion did not complete");
-        }
-    })
-    .to("file:///data/output");
-
-// Helper class for loop condition
-public class MyPollingHelper {
-    public static boolean shouldContinuePolling(Exchange exchange) {
-        Integer attempt = exchange.getProperty("attempt", Integer.class);
-        Integer maxAttempts = exchange.getProperty("maxAttempts", Integer.class);
-        Boolean isCompleted = exchange.getProperty("isCompleted", Boolean.class);
-        Boolean isFailed = exchange.getProperty("isFailed", Boolean.class);
-
-        if (Boolean.TRUE.equals(isCompleted) || Boolean.TRUE.equals(isFailed)) {
-            return false;
-        }
-        if (attempt != null && maxAttempts != null && attempt >= maxAttempts) {
-            return false;
-        }
-        return true;
-    }
-}
-----
-
-YAML::
-+
-[source,yaml]
-----
-# Note: For YAML, consider using the built-in async mode (useAsyncMode=true)
-# which handles polling automatically. Custom polling is easier in Java DSL.
-
-- route:
-    id: async-with-custom-polling
-    from:
-      uri: file:///data/documents
-      parameters:
-        include: ".*\\.pdf"
-    steps:
-      - log:
-          message: "Starting async conversion for: ${header.CamelFileName}"
-      - to:
-          uri: docling:convert
-          parameters:
-            operation: "SUBMIT_ASYNC_CONVERSION"
-            useDoclingServe: true
-      - log:
-          message: "Submitted conversion with task ID: ${body}"
-      - setHeader:
-          name: "taskId"
-          expression:
-            simple:
-              expression: "${body}"
-      # For YAML, simpler to use Java processor bean or built-in async mode
-      - to:
-          uri: bean:asyncPollingProcessor
-      - to:
-          uri: file:///data/output
-----
-====
-
-==== ConversionStatus Object
-
-The `CHECK_CONVERSION_STATUS` operation returns a `ConversionStatus` object with the following properties:
-
-- **taskId** (String) - The task identifier
-- **status** (enum) - PENDING, IN_PROGRESS, COMPLETED, FAILED, or UNKNOWN
-- **result** (String) - Converted document content (available when status is COMPLETED)
-- **errorMessage** (String) - Error details (available when status is FAILED)
-- **progress** (Integer) - Task queue position
-
-Helper methods:
-- `isCompleted()` - Returns true if conversion completed successfully
-- `isFailed()` - Returns true if conversion failed
-- `isInProgress()` - Returns true if conversion is still processing
-
-==== Parallel Processing with Custom Workflow
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-// Submit multiple conversions
-from("file:///data/documents?include=.*\\.pdf")
-    .to("docling:convert?operation=SUBMIT_ASYNC_CONVERSION&useDoclingServe=true")
-    .to("seda:task-queue");
-
-// Process task queue with multiple threads
-from("seda:task-queue?concurrentConsumers=5")
-    .log("Processing task: ${body}")
-    .setHeader("taskId", body())
-    .setProperty("maxAttempts", constant(60))
-    .setProperty("attempt", constant(0))
-    .loopDoWhile(method(MyPollingHelper.class, "shouldContinuePolling"))
-        .process(exchange -> {
-            Integer attempt = exchange.getProperty("attempt", Integer.class);
-            exchange.setProperty("attempt", attempt != null ? attempt + 1 : 1);
-        })
-        .setBody(header("taskId"))
-        .to("docling:convert?operation=CHECK_CONVERSION_STATUS&useDoclingServe=true")
-        .setProperty("conversionStatus", body())
-        .process(exchange -> {
-            ConversionStatus status = exchange.getProperty("conversionStatus", ConversionStatus.class);
-            if (status.isCompleted()) {
-                exchange.setProperty("isCompleted", true);
-            } else if (status.isFailed()) {
-                exchange.setProperty("isFailed", true);
-            }
-        })
-        .choice()
-            .when(exchangeProperty("isCompleted").isEqualTo(true))
-                .stop()
-            .when(exchangeProperty("isFailed").isEqualTo(true))
-                .stop()
-        .end()
-        .delay(1000)
-    .end()
-    .process(exchange -> {
-        ConversionStatus status = exchange.getProperty("conversionStatus", ConversionStatus.class);
-        if (status != null && status.isCompleted()) {
-            exchange.getIn().setBody(status.getResult());
-        }
-    })
-    .choice()
-        .when(body().isNotNull())
-            .to("file:///data/output?fileName=${header.CamelFileName}")
-    .end();
-----
-
-YAML::
-+
-[source,yaml]
-----
-# For parallel processing in YAML, recommend using built-in async mode
-# which is simpler and handles concurrency automatically
-
-- route:
-    from:
-      uri: file:///data/documents
-      parameters:
-        include: ".*\\.pdf"
-    steps:
-      - to:
-          uri: docling:convert
-          parameters:
-            operation: "CONVERT_TO_MARKDOWN"
-            useDoclingServe: true
-            useAsyncMode: true
-            asyncPollInterval: 1000
-            asyncTimeout: 120000
-            contentInBody: true
-      - to:
-          uri: file:///data/output
-          parameters:
-            fileName: "${header.CamelFileName}"
-----
-====
-
-TIP: For a complete working example of custom polling workflow, see the `testCustomPollingWorkflowWithRoute()` test in `DoclingServeProducerIT.java` in the camel-docling test sources.
-
-== Using Docling-Serve API
-
-=== Basic usage with docling-serve
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:///data/documents?include=.*\\.pdf")
-    .to("docling:CONVERT_TO_MARKDOWN?useDoclingServe=true&doclingServeUrl=http://localhost:5001&contentInBody=true")
-    .process(exchange -> {
-        String markdown = exchange.getIn().getBody(String.class);
-        log.info("Converted content: {}", markdown);
-    });
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: file:///data/documents
-      parameters:
-        include: ".*\\.pdf"
-    steps:
-      - to:
-          uri: docling:CONVERT_TO_MARKDOWN
-          parameters:
-            useDoclingServe: true
-            doclingServeUrl: "http://localhost:5001"
-            contentInBody: true
-      - process:
-          ref: "markdownProcessor"
-----
-====
-
-=== Converting documents from URLs using docling-serve
-
-When using docling-serve API mode, you can also process documents from URLs:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("timer:convert?repeatCount=1")
-    .setBody(constant("https://arxiv.org/pdf/2501.17887"))
-    .to("docling:CONVERT_TO_MARKDOWN?useDoclingServe=true&contentInBody=true")
-    .to("file:///data/output");
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: timer:convert
-      parameters:
-        repeatCount: 1
-    steps:
-      - setBody:
-          constant: "https://arxiv.org/pdf/2501.17887"
-      - to:
-          uri: docling:CONVERT_TO_MARKDOWN
-          parameters:
-            useDoclingServe: true
-            contentInBody: true
-      - to:
-          uri: file:///data/output
-----
-====
-
-=== Batch processing with docling-serve
+== Document Chunking
 
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:///data/documents?include=.*\\.(pdf|docx)")
-    .to("docling:CONVERT_TO_HTML?useDoclingServe=true&doclingServeUrl=http://localhost:5001&contentInBody=true")
-    .to("file:///data/converted?fileName=${file:name.noext}.html");
-----
+The component supports document chunking via docling-serve, which splits documents into semantically meaningful chunks suitable for RAG (Retrieval-Augmented Generation) pipelines, vector databases, and other NLP workflows. Unlike naive text splitting, docling chunking is structure-aware — it respects document headings, paragraphs, and tables — and the hybrid chunker is also token-aware, ensuring chunks fit within model token limits.
 
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: file:///data/documents
-      parameters:
-        include: ".*\\.(pdf|docx)"
-    steps:
-      - to:
-          uri: docling:CONVERT_TO_HTML
-          parameters:
-            useDoclingServe: true
-            doclingServeUrl: "http://localhost:5001"
-            contentInBody: true
-      - to:
-          uri: file:///data/converted
-          parameters:
-            fileName: "${file:name.noext}.html"
-----
-====
+NOTE: Both chunking operations require `useDoclingServe=true`. The Docling CLI does not expose chunking as a command — chunking is only available through the docling-serve REST API.
 
-=== Authentication with docling-serve
+`CHUNK_HYBRID` uses the HybridChunker, which is both structure-aware and token-aware. It respects document structure while ensuring each chunk stays within a configurable token limit. Best for RAG pipelines with embedding models that have fixed token windows. Configure it with the `chunkingTokenizer`, `chunkingMaxTokens`, and `chunkingMergePeers` options (see the endpoint options table above).
 
-The component supports multiple authentication mechanisms for secured docling-serve instances.
+`CHUNK_HIERARCHICAL` uses the HierarchicalChunker, which is structure-aware only. It splits at document structure boundaries (sections, paragraphs) without enforcing token limits. Best when chunk size is less important than preserving complete structural units.
 
-==== Bearer Token Authentication
+When `contentInBody=true`, the exchange body is set to a `List<Chunk>` (`ai.docling.serve.api.chunk.response.Chunk`), ready for use with Camel's `.split(body())` EIP. Each `Chunk` object provides:
 
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:///data/documents?include=.*\\.pdf")
-    .to("docling:CONVERT_TO_MARKDOWN?" +
-        "useDoclingServe=true&" +
-        "doclingServeUrl=http://localhost:5001&" +
-        "authenticationScheme=BEARER&" +
-        "authenticationToken=your-bearer-token-here&" +
-        "contentInBody=true")
-    .to("file:///data/output");
-----
+- `text` — the chunk text content
+- `chunkIndex` — zero-based position in the document
+- `filename` — source document filename
+- `headings` — list of heading strings leading to this chunk
+- `pageNumbers` — list of page numbers this chunk spans
+- `captions` — list of captions (e.g., table or figure captions)
+- `numTokens` — token count (hybrid chunker only)
 
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: file:///data/documents
-      parameters:
-        include: ".*\\.pdf"
-    steps:
-      - to:
-          uri: docling:CONVERT_TO_MARKDOWN
-          parameters:
-            useDoclingServe: true
-            doclingServeUrl: "http://localhost:5001"
-            authenticationScheme: "BEARER"
-            authenticationToken: "your-bearer-token-here"
-            contentInBody: true
-      - to:
-          uri: file:///data/output
-----
-====
+When `contentInBody=false`, the full `ChunkDocumentResponse` is returned.
 
-==== API Key Authentication
+=== Basic Chunking
 
 [tabs]
 ====
@@ -2203,14 +778,16 @@ Java::
 [source,java]
 ----
 from("file:///data/documents?include=.*\\.pdf")
-    .to("docling:CONVERT_TO_MARKDOWN?" +
+    .setHeader("CamelDoclingInputFilePath", simple("${file:absolute.path}"))
+    .to("docling:CHUNK_HYBRID?" +
         "useDoclingServe=true&" +
-        "doclingServeUrl=http://localhost:5001&" +
-        "authenticationScheme=API_KEY&" +
-        "authenticationToken=your-api-key-here&" +
-        "apiKeyHeader=X-API-Key&" +
-        "contentInBody=true")
-    .to("file:///data/output");
+        "contentInBody=true&" +
+        "chunkingTokenizer=sentence-transformers/all-MiniLM-L6-v2&" +
+        "chunkingMaxTokens=128&" +
+        "chunkingMergePeers=true")
+    .split(body())
+        .log("Chunk ${body.chunkIndex}: ${body.text}")
+    .end();
 ----
 
 YAML::
@@ -2223,23 +800,32 @@ YAML::
       parameters:
         include: ".*\\.pdf"
     steps:
+      - setHeader:
+          name: CamelDoclingInputFilePath
+          expression:
+            simple:
+              expression: "${file:absolute.path}"
       - to:
-          uri: docling:CONVERT_TO_MARKDOWN
+          uri: docling:CHUNK_HYBRID
           parameters:
             useDoclingServe: true
-            doclingServeUrl: "http://localhost:5001"
-            authenticationScheme: "API_KEY"
-            authenticationToken: "your-api-key-here"
-            apiKeyHeader: "X-API-Key"
             contentInBody: true
-      - to:
-          uri: file:///data/output
+            chunkingTokenizer: "sentence-transformers/all-MiniLM-L6-v2"
+            chunkingMaxTokens: 128
+            chunkingMergePeers: true
+      - split:
+          expression:
+            simple:
+              expression: "${body}"
+          steps:
+            - log:
+                message: "Chunk ${body.chunkIndex}: ${body.text}"
 ----
 ====
 
-==== Using Custom API Key Header
+=== Chunking for RAG Pipelines
 
-If your docling-serve instance uses a custom header name for API keys:
+A common use case is to chunk documents, generate embeddings, and store them in a vector database:
 
 [tabs]
 ====
@@ -2247,15 +833,20 @@ Java::
 +
 [source,java]
 ----
-from("file:///data/documents?include=.*\\.pdf")
-    .to("docling:CONVERT_TO_MARKDOWN?" +
+from("direct:ingest-pdf")
+    .setHeader("CamelDoclingInputFilePath", header("pdfFilePath"))
+    .to("docling:CHUNK_HYBRID?" +
         "useDoclingServe=true&" +
-        "doclingServeUrl=http://localhost:5001&" +
-        "authenticationScheme=API_KEY&" +
-        "authenticationToken=your-api-key-here&" +
-        "apiKeyHeader=X-Custom-API-Key&" +
-        "contentInBody=true")
-    .to("file:///data/output");
+        "contentInBody=true&" +
+        "chunkingTokenizer={{embedding.tokenizer}}&" +
+        "chunkingMaxTokens={{embedding.max-tokens}}&" +
+        "chunkingMergePeers=true")
+    .split(body())
+        .setBody(simple("${body.text}"))
+        .to("openai:embeddings?embeddingModel={{embedding.model}}")
+        // store embedding in vector database
+        .to("direct:store-embedding")
+    .end();
 ----
 
 YAML::
@@ -2263,28 +854,44 @@ YAML::
 [source,yaml]
 ----
 - route:
+    id: ingest-pdf
     from:
-      uri: file:///data/documents
-      parameters:
-        include: ".*\\.pdf"
+      uri: direct:ingest-pdf
     steps:
+      - setHeader:
+          name: CamelDoclingInputFilePath
+          expression:
+            simple:
+              expression: "${header.pdfFilePath}"
       - to:
-          uri: docling:CONVERT_TO_MARKDOWN
+          uri: docling:CHUNK_HYBRID
           parameters:
             useDoclingServe: true
-            doclingServeUrl: "http://localhost:5001"
-            authenticationScheme: "API_KEY"
-            authenticationToken: "your-api-key-here"
-            apiKeyHeader: "X-Custom-API-Key"
             contentInBody: true
-      - to:
-          uri: file:///data/output
+            chunkingTokenizer: "{{embedding.tokenizer}}"
+            chunkingMaxTokens: "{{embedding.max-tokens}}"
+            chunkingMergePeers: true
+      - split:
+          expression:
+            simple:
+              expression: "${body}"
+          steps:
+            - setBody:
+                expression:
+                  simple:
+                    expression: "${body.text}"
+            - to:
+                uri: openai:embeddings
+                parameters:
+                  embeddingModel: "{{embedding.model}}"
+            - to:
+                uri: direct:store-embedding
 ----
 ====
 
-==== Using Authentication Token from Properties
+=== Hierarchical Chunking
 
-For better security, store authentication tokens in properties or environment variables:
+Use hierarchical chunking when you want to preserve complete structural units without token limits:
 
 [tabs]
 ====
@@ -2293,13 +900,13 @@ Java::
 [source,java]
 ----
 from("file:///data/documents?include=.*\\.pdf")
-    .to("docling:CONVERT_TO_MARKDOWN?" +
+    .setHeader("CamelDoclingInputFilePath", simple("${file:absolute.path}"))
+    .to("docling:CHUNK_HIERARCHICAL?" +
         "useDoclingServe=true&" +
-        "doclingServeUrl={{docling.serve.url}}&" +
-        "authenticationScheme=BEARER&" +
-        "authenticationToken={{docling.serve.token}}&" +
         "contentInBody=true")
-    .to("file:///data/output");
+    .split(body())
+        .log("Section [${body.headings}] page ${body.pageNumbers}: ${body.text}")
+    .end();
 ----
 
 YAML::
@@ -2312,76 +919,23 @@ YAML::
       parameters:
         include: ".*\\.pdf"
     steps:
+      - setHeader:
+          name: CamelDoclingInputFilePath
+          expression:
+            simple:
+              expression: "${file:absolute.path}"
       - to:
-          uri: docling:CONVERT_TO_MARKDOWN
+          uri: docling:CHUNK_HIERARCHICAL
           parameters:
             useDoclingServe: true
-            doclingServeUrl: "{{docling.serve.url}}"
-            authenticationScheme: "BEARER"
-            authenticationToken: "{{docling.serve.token}}"
             contentInBody: true
-      - to:
-          uri: file:///data/output
-----
-====
-
-Then define in `application.properties`:
-[source,properties]
-----
-docling.serve.url=http://localhost:5001
-docling.serve.token=your-bearer-token-here
-----
-
-==== OAuth Authentication
-
-When the docling-serve instance is protected by an OAuth identity provider, set the `oauthProfile` parameter to acquire an access token via the OAuth 2.0 Client Credentials grant. The token is used as the `authenticationToken` and the `authenticationScheme` is automatically set to `BEARER`. This requires `camel-oauth` on the classpath.
-
-[source,properties]
-----
-camel.oauth.docling.client-id=my-client
-camel.oauth.docling.client-secret=my-secret
-camel.oauth.docling.token-endpoint=https://idp.example.com/token
-----
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:///data/input")
-    .to("docling:CONVERT_TO_MARKDOWN?useDoclingServe=true&doclingServeUrl=http://localhost:5001&oauthProfile=docling&contentInBody=true")
-    .log("${body}");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="file:///data/input"/>
-  <to uri="docling:CONVERT_TO_MARKDOWN?useDoclingServe=true&amp;doclingServeUrl=http://localhost:5001&amp;oauthProfile=docling&amp;contentInBody=true"/>
-  <log message="${body}"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: file:///data/input
-      steps:
-        - to:
-            uri: docling:CONVERT_TO_MARKDOWN
-            parameters:
-              useDoclingServe: true
-              doclingServeUrl: "http://localhost:5001"
-              oauthProfile: docling
-              contentInBody: true
-        - log:
-            message: "${body}"
+      - split:
+          expression:
+            simple:
+              expression: "${body}"
+          steps:
+            - log:
+                message: "Section [${body.headings}] page ${body.pageNumbers}: ${body.text}"
 ----
 ====
 
@@ -2625,6 +1179,14 @@ The component handles various error scenarios:
 - **Batch Processing**: When processing multiple documents, async mode allows better parallelization as the docling-serve instance can process multiple documents concurrently while Camel polls for results.
 - **Enrichment Features**: Enabling advanced options like `doPictureClassification` or `doPictureDescription` may require additional ML models on the server and can increase processing time.
 
+== Sub-Pages
+
+For more details on specific features, see:
+
+* xref:others:docling-batch-processing.adoc[Batch Processing] - Batch operations, queue-based processing, error handling, and result splitting
+* xref:others:docling-async-processing.adoc[Asynchronous Processing] - Async mode, custom timeouts, polling patterns, and parallel processing
+* xref:others:docling-serve.adoc[Using Docling-Serve API] - Remote API usage, URL processing, and authentication methods
+
 == HTTP Client Configuration
 
 When using docling-serve API mode, the component uses the https://github.com/docling-project/docling-java[docling-java] library which internally uses Java's built-in `HttpClient`. The HTTP client is configured with sensible defaults and connection management is handled automatically by the library.
diff --git a/components/camel-ai/camel-docling/src/main/docs/docling-serve.adoc b/components/camel-ai/camel-docling/src/main/docs/docling-serve.adoc
new file mode 100644
index 000000000000..c03ab74c720b
--- /dev/null
+++ b/components/camel-ai/camel-docling/src/main/docs/docling-serve.adoc
@@ -0,0 +1,351 @@
+= Docling - Using Docling-Serve API
+:tabs-sync-option:
+
+xref:ROOT:docling-component.adoc[Back to Docling Component]
+
+== Basic usage with docling-serve
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:///data/documents?include=.*\\.pdf")
+    .to("docling:CONVERT_TO_MARKDOWN?useDoclingServe=true&doclingServeUrl=http://localhost:5001&contentInBody=true")
+    .process(exchange -> {
+        String markdown = exchange.getIn().getBody(String.class);
+        log.info("Converted content: {}", markdown);
+    });
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:///data/documents
+      parameters:
+        include: ".*\\.pdf"
+    steps:
+      - to:
+          uri: docling:CONVERT_TO_MARKDOWN
+          parameters:
+            useDoclingServe: true
+            doclingServeUrl: "http://localhost:5001"
+            contentInBody: true
+      - process:
+          ref: "markdownProcessor"
+----
+====
+
+== Converting documents from URLs using docling-serve
+
+When using docling-serve API mode, you can also process documents from URLs:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("timer:convert?repeatCount=1")
+    .setBody(constant("https://arxiv.org/pdf/2501.17887"))
+    .to("docling:CONVERT_TO_MARKDOWN?useDoclingServe=true&contentInBody=true")
+    .to("file:///data/output");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: timer:convert
+      parameters:
+        repeatCount: 1
+    steps:
+      - setBody:
+          constant: "https://arxiv.org/pdf/2501.17887"
+      - to:
+          uri: docling:CONVERT_TO_MARKDOWN
+          parameters:
+            useDoclingServe: true
+            contentInBody: true
+      - to:
+          uri: file:///data/output
+----
+====
+
+== Batch processing with docling-serve
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:///data/documents?include=.*\\.(pdf|docx)")
+    .to("docling:CONVERT_TO_HTML?useDoclingServe=true&doclingServeUrl=http://localhost:5001&contentInBody=true")
+    .to("file:///data/converted?fileName=${file:name.noext}.html");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:///data/documents
+      parameters:
+        include: ".*\\.(pdf|docx)"
+    steps:
+      - to:
+          uri: docling:CONVERT_TO_HTML
+          parameters:
+            useDoclingServe: true
+            doclingServeUrl: "http://localhost:5001"
+            contentInBody: true
+      - to:
+          uri: file:///data/converted
+          parameters:
+            fileName: "${file:name.noext}.html"
+----
+====
+
+== Authentication with docling-serve
+
+The component supports multiple authentication mechanisms for secured docling-serve instances.
+
+=== Bearer Token Authentication
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:///data/documents?include=.*\\.pdf")
+    .to("docling:CONVERT_TO_MARKDOWN?" +
+        "useDoclingServe=true&" +
+        "doclingServeUrl=http://localhost:5001&" +
+        "authenticationScheme=BEARER&" +
+        "authenticationToken=your-bearer-token-here&" +
+        "contentInBody=true")
+    .to("file:///data/output");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:///data/documents
+      parameters:
+        include: ".*\\.pdf"
+    steps:
+      - to:
+          uri: docling:CONVERT_TO_MARKDOWN
+          parameters:
+            useDoclingServe: true
+            doclingServeUrl: "http://localhost:5001"
+            authenticationScheme: "BEARER"
+            authenticationToken: "your-bearer-token-here"
+            contentInBody: true
+      - to:
+          uri: file:///data/output
+----
+====
+
+=== API Key Authentication
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:///data/documents?include=.*\\.pdf")
+    .to("docling:CONVERT_TO_MARKDOWN?" +
+        "useDoclingServe=true&" +
+        "doclingServeUrl=http://localhost:5001&" +
+        "authenticationScheme=API_KEY&" +
+        "authenticationToken=your-api-key-here&" +
+        "apiKeyHeader=X-API-Key&" +
+        "contentInBody=true")
+    .to("file:///data/output");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:///data/documents
+      parameters:
+        include: ".*\\.pdf"
+    steps:
+      - to:
+          uri: docling:CONVERT_TO_MARKDOWN
+          parameters:
+            useDoclingServe: true
+            doclingServeUrl: "http://localhost:5001"
+            authenticationScheme: "API_KEY"
+            authenticationToken: "your-api-key-here"
+            apiKeyHeader: "X-API-Key"
+            contentInBody: true
+      - to:
+          uri: file:///data/output
+----
+====
+
+=== Using Custom API Key Header
+
+If your docling-serve instance uses a custom header name for API keys:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:///data/documents?include=.*\\.pdf")
+    .to("docling:CONVERT_TO_MARKDOWN?" +
+        "useDoclingServe=true&" +
+        "doclingServeUrl=http://localhost:5001&" +
+        "authenticationScheme=API_KEY&" +
+        "authenticationToken=your-api-key-here&" +
+        "apiKeyHeader=X-Custom-API-Key&" +
+        "contentInBody=true")
+    .to("file:///data/output");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:///data/documents
+      parameters:
+        include: ".*\\.pdf"
+    steps:
+      - to:
+          uri: docling:CONVERT_TO_MARKDOWN
+          parameters:
+            useDoclingServe: true
+            doclingServeUrl: "http://localhost:5001"
+            authenticationScheme: "API_KEY"
+            authenticationToken: "your-api-key-here"
+            apiKeyHeader: "X-Custom-API-Key"
+            contentInBody: true
+      - to:
+          uri: file:///data/output
+----
+====
+
+=== Using Authentication Token from Properties
+
+For better security, store authentication tokens in properties or environment variables:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:///data/documents?include=.*\\.pdf")
+    .to("docling:CONVERT_TO_MARKDOWN?" +
+        "useDoclingServe=true&" +
+        "doclingServeUrl={{docling.serve.url}}&" +
+        "authenticationScheme=BEARER&" +
+        "authenticationToken={{docling.serve.token}}&" +
+        "contentInBody=true")
+    .to("file:///data/output");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:///data/documents
+      parameters:
+        include: ".*\\.pdf"
+    steps:
+      - to:
+          uri: docling:CONVERT_TO_MARKDOWN
+          parameters:
+            useDoclingServe: true
+            doclingServeUrl: "{{docling.serve.url}}"
+            authenticationScheme: "BEARER"
+            authenticationToken: "{{docling.serve.token}}"
+            contentInBody: true
+      - to:
+          uri: file:///data/output
+----
+====
+
+Then define in `application.properties`:
+[source,properties]
+----
+docling.serve.url=http://localhost:5001
+docling.serve.token=your-bearer-token-here
+----
+
+=== OAuth Authentication
+
+When the docling-serve instance is protected by an OAuth identity provider, set the `oauthProfile` parameter to acquire an access token via the OAuth 2.0 Client Credentials grant. The token is used as the `authenticationToken` and the `authenticationScheme` is automatically set to `BEARER`. This requires `camel-oauth` on the classpath.
+
+[source,properties]
+----
+camel.oauth.docling.client-id=my-client
+camel.oauth.docling.client-secret=my-secret
+camel.oauth.docling.token-endpoint=https://idp.example.com/token
+----
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:///data/input")
+    .to("docling:CONVERT_TO_MARKDOWN?useDoclingServe=true&doclingServeUrl=http://localhost:5001&oauthProfile=docling&contentInBody=true")
+    .log("${body}");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="file:///data/input"/>
+  <to uri="docling:CONVERT_TO_MARKDOWN?useDoclingServe=true&amp;doclingServeUrl=http://localhost:5001&amp;oauthProfile=docling&amp;contentInBody=true"/>
+  <log message="${body}"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:///data/input
+      steps:
+        - to:
+            uri: docling:CONVERT_TO_MARKDOWN
+            parameters:
+              useDoclingServe: true
+              doclingServeUrl: "http://localhost:5001"
+              oauthProfile: docling
+              contentInBody: true
+        - log:
+            message: "${body}"
+----
+====
diff --git a/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-component.adoc b/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-component.adoc
index ec4246717507..af39c1b8079e 100644
--- a/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-component.adoc
+++ b/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-component.adoc
@@ -801,348 +801,6 @@ String response = template.requestBody("direct:chat",
 When using mixed tools, Camel route tools are discovered dynamically via the `tags` parameter, while custom LangChain4j tools are provided statically via the `customTools` configuration.
 ====
 
-=== MCP (Model Context Protocol) Tools
-
-The LangChain4j Agent component supports integration with MCP (Model Context Protocol) tools, allowing agents to interact with external systems and services through standardized protocols.
-
-==== Configuring MCP Clients
-
-To use MCP tools with your agent, you need to configure MCP clients in your `AgentConfiguration`:
-
-._Java-only: LangChain4j MCP transport and client configuration_
-[source,java]
-----
-// Create MCP transport for filesystem server
-McpTransport filesystemTransport = new StdioMcpTransport.Builder()
-    .command(Arrays.asList("npx", "-y", "@modelcontextprotocol/server-filesystem", "/path/to/directory"))
-    .logEvents(true)
-    .build();
-
-// Create MCP client
-McpClient filesystemClient = new DefaultMcpClient.Builder()
-    .transport(filesystemTransport)
-    .build();
-
-// Create agent configuration with MCP clients
-AgentConfiguration config = new AgentConfiguration()
-    .withChatModel(chatModel)
-    .withMcpClients(Arrays.asList(filesystemClient));
-
-// Create agent
-Agent agent = new AgentWithoutMemory(config);
-----
-
-==== MCP Tool Filtering
-
-You can apply filters to control which MCP tools are available to your agent:
-
-._Java-only: `BiPredicate` filter with LangChain4j `ToolSpecification`_
-[source,java]
-----
-// Create security filter to only allow read operations
-BiPredicate<McpClient, ToolSpecification> securityFilter = (client, toolSpec) -> {
-    String toolName = toolSpec.name().toLowerCase();
-    // Only allow read operations for safety
-    return toolName.contains("read") || toolName.contains("list") || toolName.contains("get");
-};
-
-AgentConfiguration config = new AgentConfiguration()
-    .withChatModel(chatModel)
-    .withMcpClients(Arrays.asList(filesystemClient))
-    .withMcpToolProviderFilter(securityFilter);
-----
-
-==== Complete MCP Example
-
-Here's a complete example showing how to use MCP tools with an agent:
-
-._Java-only: LangChain4j MCP client setup and bean registration_
-[source,java]
-----
-// Create MCP client for filesystem access
-McpTransport transport = new StdioMcpTransport.Builder()
-    .command(Arrays.asList("npx", "-y", "@modelcontextprotocol/server-filesystem", "/tmp"))
-    .logEvents(true)
-    .build();
-
-McpClient mcpClient = new DefaultMcpClient.Builder()
-    .transport(transport)
-    .build();
-
-// Create agent with MCP tools
-AgentConfiguration config = new AgentConfiguration()
-    .withChatModel(chatModel)
-    .withMcpClient(mcpClient);
-
-Agent agent = new AgentWithoutMemory(config);
-
-// Register agent in Camel context
-context.getRegistry().bind("mcpAgent", agent);
-----
-
-==== Route Configuration with MCP Tools
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("langchain4j-agent:assistant?agent=#mcpAgent")
-    .to("mock:agent-response");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="langchain4j-agent:assistant?agent=#mcpAgent"/>
-  <to uri="mock:agent-response"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: langchain4j-agent:assistant
-            parameters:
-              agent: "#mcpAgent"
-        - to:
-            uri: mock:agent-response
-----
-====
-
-==== Usage Example with MCP Tools
-
-._Java-only: ProducerTemplate test API_
-[source,java]
-----
-String response = template.requestBody("direct:chat",
-    "Can you list the files in the current directory and read the content of file.txt?", String.class);
-----
-
-==== Endpoint-Level MCP Configuration
-
-MCP servers can also be configured directly on the endpoint, without setting them on the `AgentConfiguration`. This is useful for declarative route definitions and allows MCP tools to coexist with Camel route tools (via `tags`).
-
-===== Bean References
-
-Register pre-built `McpClient` beans and reference them via the `mcpClients` endpoint parameter:
-
-._Java-only: LangChain4j `McpClient` bean registration_
-[source,java]
-----
-// Register MCP clients as beans
-McpClient timeClient = new DefaultMcpClient.Builder()
-    .key("time")
-    .transport(new StdioMcpTransport.Builder()
-        .command(Arrays.asList("docker", "run", "-i", "--rm", "mcp/time"))
-        .build())
-    .build();
-context.getRegistry().bind("timeMcpClient", timeClient);
-----
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("langchain4j-agent:assistant?agent=#myAgent&tags=users&mcpClients=#timeMcpClient")
-    .to("mock:response");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="langchain4j-agent:assistant?agent=#myAgent&amp;tags=users&amp;mcpClients=#timeMcpClient"/>
-  <to uri="mock:response"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: langchain4j-agent:assistant
-            parameters:
-              agent: "#myAgent"
-              tags: users
-              mcpClients: "#timeMcpClient"
-        - to:
-            uri: mock:response
-----
-====
-
-===== Inline URI Configuration
-
-MCP servers can be defined inline on the endpoint URI using the `mcpServer.<name>.<property>` pattern. The component creates and manages the MCP client lifecycle automatically.
-
-Supported properties:
-
-[cols="1,1,3"]
-|===
-| Property | Default | Description
-
-| `transportType` | `stdio` | Transport type: `stdio`, `http` or `streamableHttp` (Streamable HTTP), or `sse` (legacy SSE)
-| `command` | | Comma-separated command for stdio transport (e.g., `docker,run,-i,--rm,mcp/time`)
-| `url` | | Server URL for `http` or `sse` transport
-| `environment.<key>` | | Environment variables for stdio transport
-| `timeout` | `60` | Timeout in seconds
-| `logRequests` | `false` | Log requests sent to the MCP server
-| `logResponses` | `false` | Log responses from the MCP server
-| `oauthProfile` | | OAuth profile name for HTTP transport auth (Client Credentials grant, requires `camel-oauth`)
-|===
-
-Example with two MCP servers configured inline:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("langchain4j-agent:assistant?agent=#myAgent&tags=users&mcpServer.everything.transportType=http&mcpServer.everything.url=http://localhost:3001/mcp&mcpServer.time.transportType=stdio&mcpServer.time.command=docker,run,-i,--rm,mcp/time")
-    .to("mock:response");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="langchain4j-agent:assistant?agent=#myAgent&amp;tags=users&amp;mcpServer.everything.transportType=http&amp;mcpServer.everything.url=http://localhost:3001/mcp&amp;mcpServer.time.transportType=stdio&amp;mcpServer.time.command=docker,run,-i,--rm,mcp/time"/>
-  <to uri="mock:response"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: langchain4j-agent:assistant
-            parameters:
-              agent: "#myAgent"
-              tags: users
-              mcpServer.everything.transportType: http
-              mcpServer.everything.url: "http://localhost:3001/mcp"
-              mcpServer.time.transportType: stdio
-              mcpServer.time.command: "docker,run,-i,--rm,mcp/time"
-        - to:
-            uri: mock:response
-----
-====
-
-Both `mcpClients` (bean references) and `mcpServer` (inline) can be used together on the same endpoint. All tool sources -- Camel route tools, endpoint-level MCP tools, and agent-level MCP tools -- are automatically composed into a single tool provider.
-
-==== Dynamic Tool Exclusion via Headers
-
-Tools can be dynamically excluded on a per-message basis using Camel headers. This allows routes to control which tools are available based on business logic, user roles, or message content.
-
-[cols="1,3"]
-|===
-| Header | Description
-
-| `CamelLangChain4jAgentExcludeTags` | Comma-separated list of Camel tool tags to exclude
-| `CamelLangChain4jAgentExcludeMcpServers` | Comma-separated list of MCP server names (keys) to exclude
-|===
-
-Example -- exclude specific tools based on a condition:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .choice()
-        .when(header("userRole").isEqualTo("readonly"))
-            .setHeader("CamelLangChain4jAgentExcludeTags", constant("admin-tools"))
-            .setHeader("CamelLangChain4jAgentExcludeMcpServers", constant("filesystem"))
-    .end()
-    .to("langchain4j-agent:assistant?agent=#myAgent&tags=users,admin-tools&mcpClients=#fsMcpClient,#timeMcpClient")
-    .to("mock:response");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <choice>
-    <when>
-      <simple>${header.userRole} == 'readonly'</simple>
-      <setHeader name="CamelLangChain4jAgentExcludeTags">
-        <constant>admin-tools</constant>
-      </setHeader>
-      <setHeader name="CamelLangChain4jAgentExcludeMcpServers">
-        <constant>filesystem</constant>
-      </setHeader>
-    </when>
-  </choice>
-  <to uri="langchain4j-agent:assistant?agent=#myAgent&amp;tags=users,admin-tools&amp;mcpClients=#fsMcpClient,#timeMcpClient"/>
-  <to uri="mock:response"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - choice:
-            when:
-              - simple: "${header.userRole} == 'readonly'"
-                steps:
-                  - setHeader:
-                      name: CamelLangChain4jAgentExcludeTags
-                      constant: admin-tools
-                  - setHeader:
-                      name: CamelLangChain4jAgentExcludeMcpServers
-                      constant: filesystem
-        - to:
-            uri: langchain4j-agent:assistant
-            parameters:
-              agent: "#myAgent"
-              tags: users,admin-tools
-              mcpClients: "#fsMcpClient,#timeMcpClient"
-        - to:
-            uri: mock:response
-----
-====
-
-MCP servers are matched by their key, which is set via `DefaultMcpClient.Builder.key(name)` or automatically from the server name in inline `mcpServer.<name>` configuration. MCP clients without a key are never excluded.
-
 === RAG Integration
 
 RAG (Retrieval-Augmented Generation) is supported by configuring a `RetrievalAugmentor` in the `AgentConfiguration`. Create an agent with RAG capabilities:
@@ -1219,749 +877,83 @@ RetrievalAugmentor retrievalAugmentor = DefaultRetrievalAugmentor.builder()
                 // other options or steps can be included for Advanced RAG
                 .build();
 
-// bind the retrievalAugmentor in the context
-context.getRegistry().bind("retrievalAugmentor", retrievalAugmentor);
-
-// using the producer
-String response = template.requestBody("direct:chat", body, String.class);
-----
-
-=== Chat with Memory
-
-Memory functionality is supported by using `AgentWithMemory` and configuring a `ChatMemoryProvider` in the `AgentConfiguration`. The memory works for multiple users/sessions.
-
-[NOTE]
-====
-The component requires using a Chat Memory Provider that uses a https://docs.langchain4j.dev/tutorials/chat-memory#persistence[persistent memory store].
-====
-
-The memory works for multiple users/sessions. For each context window, the users needs to set the memory ID:
-- By setting the Header CamelLangChain4jAgentMemoryId. This supposes that user is using a body as String.
-- By setting the AiAgentBody.memoryId field. This supposes that that user is using a body as AiAgentBody.
-
-.Example of Route with Memory Agent
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("langchain4j-agent:memory?agent=#memoryAgent")
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="langchain4j-agent:memory?agent=#memoryAgent"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: langchain4j-agent:memory
-            parameters:
-              agent: "#memoryAgent"
-----
-====
-
-.Example of usage with AiAgentBody
-
-._Java-only: `ChatMemoryProvider`, `AiAgentBody`, and ProducerTemplate test API_
-[source,java]
-----
-// Example of creating a Chat Memory Provider : Create a message window memory that keeps the last 10 messages
-        ChatMemoryProvider chatMemoryProvider = memoryId -> MessageWindowChatMemory.builder()
-                .id(memoryId)
-                .maxMessages(10)
-                .chatMemoryStore(store) // the Chat Memory store is previously created
-                .build();
-
-// bind the chat memory provider in the context
-context.getRegistry().bind("chatMemoryProvider", chatMemoryProvider);
-
-
-AiAgentBody request = new AiAgentBody("Hello!", null, "session-123");
-String response = template.requestBody("direct:chat", request, String.class);
-----
-
-
-=== Input and Output Guardrails
-
-Guardrails validate and filter AI interactions to ensure security and quality. The LangChain4j Agent component provides both custom guardrail support and a set of production-ready built-in guardrails.
-
-==== Using Custom Guardrails
-
-Create classes defining InputGuardrails and OutputGuardrails as defined in the https://docs.langchain4j.dev/tutorials/guardrails[LangChain4j Guardrails documentation] page.
-
-._Java-only: `AgentConfiguration` with guardrail classes and bean registration_
-[source,java]
-----
-// Create agent configuration with custom guardrails
-AgentConfiguration configuration = new AgentConfiguration()
-    .withChatModel(chatModel)
-    .withInputGuardrailClassesList("com.example.MyInputGuardrail")
-    .withOutputGuardrailClassesList("com.example.MyOutputGuardrail1,com.example.MyOutputGuardrail2");
-
-Agent safeAgent = new AgentWithoutMemory(configuration);
-context.getRegistry().bind("safeAgent", safeAgent);
-----
-
-Use the agent with guardrails:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:agent-with-guardrails")
-    .to("langchain4j-agent:safe?agent=#safeAgent")
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:agent-with-guardrails"/>
-  <to uri="langchain4j-agent:safe?agent=#safeAgent"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:agent-with-guardrails
-      steps:
-        - to:
-            uri: langchain4j-agent:safe
-            parameters:
-              agent: "#safeAgent"
-----
-====
-
-[NOTE]
-====
-The current version of the component returns a String as response. If the outputGuardrails extends JsonExtractorOutputGuardrail class, make sure to return a Json in String format.
-====
-
-==== Built-in Guardrails
-
-The `camel-langchain4j-agent-api` module provides production-ready guardrails in the `org.apache.camel.component.langchain4j.agent.api.guardrails` package.
-
-===== Available Input Guardrails
-
-[cols="1,2"]
-|===
-|Guardrail Class |Description
-
-|`InputLengthGuardrail`
-|Validates message length (min/max characters). Prevents excessively long inputs.
-
-|`PiiDetectorGuardrail`
-|Detects Personally Identifiable Information (email, phone, SSN, credit cards, IP addresses).
-
-|`PromptInjectionGuardrail`
-|Detects prompt injection attacks (role manipulation, jailbreaks, delimiter injection).
-
-|`KeywordFilterGuardrail`
-|Blocks messages containing specific keywords or patterns.
-
-|`LanguageGuardrail`
-|Validates the language/script of user messages. Can allow or block specific languages (English, Cyrillic, Chinese, Japanese, Korean, Arabic, Hebrew, Greek, Thai, Devanagari).
-
-|`CodeInjectionGuardrail`
-|Detects potential code injection attempts including shell commands, SQL injection, JavaScript, HTML/XSS, path traversal, command chaining, and template injection.
-
-|`RegexPatternGuardrail`
-|Flexible guardrail using custom regex patterns. Can define deny patterns (block if matched) and require patterns (must be present).
-|===
-
-===== Available Output Guardrails
-
-[cols="1,2"]
-|===
-|Guardrail Class |Description
-
-|`OutputLengthGuardrail`
-|Validates response length with optional truncation support.
-
-|`SensitiveDataOutputGuardrail`
-|Detects and optionally redacts sensitive data (API keys, passwords, JWT tokens, AWS keys).
-
-|`JsonFormatGuardrail`
-|Validates JSON format, extracts JSON from text, and checks for required fields.
-
-|`KeywordOutputFilterGuardrail`
-|Blocks or redacts specific content in AI responses.
-
-|`NotEmptyGuardrail`
-|Ensures AI responses are not empty or contain only whitespace. Can optionally detect refusal patterns (e.g., "I cannot", "I'm unable to").
-
-|`WordCountGuardrail`
-|Validates the word count of AI responses. Can enforce minimum, maximum, or range constraints.
-|===
-
-==== Quick Start with Default Guardrails
-
-The `Guardrails` helper class provides convenient factory methods:
-
-._Java-only: `Guardrails` factory methods and bean registration_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.Guardrails;
-
-// Create agent with default security guardrails
-AgentConfiguration configuration = new AgentConfiguration()
-    .withChatModel(chatModel)
-    .withInputGuardrailClasses(Guardrails.defaultInputGuardrails())
-    .withOutputGuardrailClasses(Guardrails.defaultOutputGuardrails());
-
-Agent secureAgent = new AgentWithoutMemory(configuration);
-context.getRegistry().bind("secureAgent", secureAgent);
-----
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:secure-chat")
-    .to("langchain4j-agent:chat?agent=#secureAgent");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:secure-chat"/>
-  <to uri="langchain4j-agent:chat?agent=#secureAgent"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:secure-chat
-      steps:
-        - to:
-            uri: langchain4j-agent:chat
-            parameters:
-              agent: "#secureAgent"
-----
-====
-
-The default guardrails include:
-
-* **Input**: `InputLengthGuardrail`, `PiiDetectorGuardrail`, `PromptInjectionGuardrail`
-* **Output**: `OutputLengthGuardrail`, `SensitiveDataOutputGuardrail`
-
-==== Using the Fluent Builder
-
-The `Guardrails.configure()` method provides a fluent API for building configurations:
-
-._Java-only: `Guardrails` fluent builder API_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.Guardrails;
-
-AgentConfiguration configuration = Guardrails.configure()
-    .withPiiDetection()
-    .withPromptInjectionDetection()
-    .withInputLengthValidation()
-    .withSensitiveDataDetection()
-    .withJsonFormatValidation()
-    .build();
-
-configuration.withChatModel(chatModel);
-
-Agent agent = new AgentWithoutMemory(configuration);
-----
-
-==== Using Specific Guardrail Classes
-
-You can specify exactly which guardrails to use:
-
-._Java-only: `AgentConfiguration` with specific guardrail classes_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.*;
-
-AgentConfiguration configuration = new AgentConfiguration()
-    .withChatModel(chatModel)
-    .withInputGuardrailClasses(List.of(
-        InputLengthGuardrail.class,
-        PiiDetectorGuardrail.class,
-        PromptInjectionGuardrail.class
-    ))
-    .withOutputGuardrailClasses(List.of(
-        SensitiveDataOutputGuardrail.class,
-        JsonFormatGuardrail.class
-    ));
-----
-
-==== Guardrail Presets
-
-The `Guardrails` class provides preset configurations for different security levels:
-
-._Java-only: `Guardrails` preset factory methods_
-[source,java]
-----
-// Minimal protection (just length validation)
-configuration.withInputGuardrailClasses(Guardrails.minimalInputGuardrails());
-
-// Standard protection (length, PII, prompt injection)
-configuration.withInputGuardrailClasses(Guardrails.defaultInputGuardrails());
-
-// Strict protection (all input guardrails)
-configuration.withInputGuardrailClasses(Guardrails.strictInputGuardrails());
-----
-
-==== Factory Methods for Individual Guardrails
-
-The `Guardrails` class provides static factory methods to create guardrail instances:
-
-._Java-only: `Guardrails` static factory methods_
-[source,java]
-----
-// Input guardrails
-InputLengthGuardrail lengthGuard = Guardrails.inputLength(5000);  // Max 5000 chars
-PiiDetectorGuardrail piiGuard = Guardrails.piiDetector();
-PromptInjectionGuardrail injectionGuard = Guardrails.promptInjectionStrict();
-KeywordFilterGuardrail keywordGuard = Guardrails.keywordFilter("banned", "blocked");
-
-// Output guardrails
-OutputLengthGuardrail outputLength = Guardrails.outputLengthTruncating(10000);
-SensitiveDataOutputGuardrail sensitiveData = Guardrails.sensitiveDataRedacting();
-JsonFormatGuardrail jsonGuard = Guardrails.jsonFormatWithFields("name", "email");
-----
-
-==== Advanced Guardrail Configuration with Builders
-
-Each guardrail provides a builder for custom configuration:
-
-===== PII Detection Configuration
-
-._Java-only: `PiiDetectorGuardrail` builder API_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.PiiDetectorGuardrail;
-import org.apache.camel.component.langchain4j.agent.api.guardrails.PiiDetectorGuardrail.PiiType;
-
-// Detect only specific PII types
-PiiDetectorGuardrail guardrail = PiiDetectorGuardrail.builder()
-    .detectTypes(PiiType.EMAIL, PiiType.PHONE, PiiType.SSN)
-    .blockOnDetection(true)
-    .build();
-----
-
-===== Prompt Injection Detection Configuration
-
-._Java-only: `PromptInjectionGuardrail` builder API_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.PromptInjectionGuardrail;
-
-// Strict mode: fail on any single pattern match
-PromptInjectionGuardrail strictGuardrail = PromptInjectionGuardrail.strict();
-
-// Custom patterns
-PromptInjectionGuardrail customGuardrail = PromptInjectionGuardrail.builder()
-    .strict(true)
-    .addPattern(
-        PromptInjectionGuardrail.InjectionCategory.JAILBREAK,
-        Pattern.compile("(?i)custom\\s+attack\\s+pattern"))
-    .build();
-----
-
-===== Sensitive Data Output Configuration
-
-._Java-only: `SensitiveDataOutputGuardrail` builder API_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.SensitiveDataOutputGuardrail;
-import org.apache.camel.component.langchain4j.agent.api.guardrails.SensitiveDataOutputGuardrail.*;
-
-// Redact sensitive data instead of blocking
-SensitiveDataOutputGuardrail guardrail = SensitiveDataOutputGuardrail.builder()
-    .detectTypes(SensitiveDataType.API_KEY, SensitiveDataType.SECRET, SensitiveDataType.JWT)
-    .action(Action.REDACT)
-    .redactionText("***REDACTED***")
-    .build();
-----
-
-===== JSON Format Validation Configuration
-
-._Java-only: `JsonFormatGuardrail` builder API_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.JsonFormatGuardrail;
-
-// Validate JSON with required fields
-JsonFormatGuardrail guardrail = JsonFormatGuardrail.builder()
-    .requireFields("id", "name", "email")
-    .extractJson(true)      // Extract JSON from surrounding text
-    .allowArray(false)      // Only allow objects, not arrays
-    .build();
-----
-
-===== Keyword Filtering Configuration
-
-._Java-only: `KeywordFilterGuardrail` and `KeywordOutputFilterGuardrail` builder APIs_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.KeywordFilterGuardrail;
-import org.apache.camel.component.langchain4j.agent.api.guardrails.KeywordOutputFilterGuardrail;
-
-// Input keyword filter
-KeywordFilterGuardrail inputFilter = KeywordFilterGuardrail.builder()
-    .blockedWords("spam", "inappropriate", "banned")
-    .blockedPattern("\\b(hack|exploit)\\b")
-    .caseSensitive(false)
-    .wholeWordMatch(true)
-    .build();
-
-// Output keyword filter with redaction
-KeywordOutputFilterGuardrail outputFilter = KeywordOutputFilterGuardrail.builder()
-    .blockedWords("confidential", "internal-only")
-    .action(KeywordOutputFilterGuardrail.Action.REDACT)
-    .redactionText("[REMOVED]")
-    .build();
-----
-
-===== Language Validation Configuration
-
-._Java-only: `LanguageGuardrail` builder API_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.LanguageGuardrail;
-import org.apache.camel.component.langchain4j.agent.api.guardrails.LanguageGuardrail.Language;
-
-// Allow only English input
-LanguageGuardrail englishOnly = LanguageGuardrail.allowOnly(Language.ENGLISH);
-
-// Allow English and Latin script languages (Spanish, French, German, etc.)
-LanguageGuardrail latinLanguages = LanguageGuardrail.allowOnly(
-    Language.ENGLISH, Language.LATIN_SCRIPT);
-
-// Block specific languages
-LanguageGuardrail blockCyrillic = LanguageGuardrail.block(Language.CYRILLIC);
-
-// Custom configuration with mixed content control
-LanguageGuardrail customLanguage = LanguageGuardrail.builder()
-    .allowedLanguages(Language.ENGLISH, Language.LATIN_SCRIPT)
-    .blockedLanguages(Language.CYRILLIC)
-    .allowMixed(false)  // Don't allow mixed language content
-    .build();
-----
-
-===== Code Injection Detection Configuration
-
-._Java-only: `CodeInjectionGuardrail` builder API_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.CodeInjectionGuardrail;
-import org.apache.camel.component.langchain4j.agent.api.guardrails.CodeInjectionGuardrail.InjectionType;
-
-// Default: detect all code injection types
-CodeInjectionGuardrail defaultGuard = new CodeInjectionGuardrail();
-
-// Strict mode: fail on any single pattern match
-CodeInjectionGuardrail strictGuard = CodeInjectionGuardrail.strict();
-
-// Detect only specific injection types
-CodeInjectionGuardrail sqlAndShellOnly = CodeInjectionGuardrail.forTypes(
-    InjectionType.SQL_INJECTION, InjectionType.SHELL_COMMAND);
-
-// Custom configuration
-CodeInjectionGuardrail customGuard = CodeInjectionGuardrail.builder()
-    .detectTypes(InjectionType.SQL_INJECTION, InjectionType.JAVASCRIPT, InjectionType.PATH_TRAVERSAL)
-    .strict(true)
-    .build();
-----
-
-===== Regex Pattern Guardrail Configuration
-
-._Java-only: `RegexPatternGuardrail` builder API_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.RegexPatternGuardrail;
-
-// Block messages containing URLs
-RegexPatternGuardrail noUrls = RegexPatternGuardrail.blocking(
-    "https?://[^\\s]+", "URLs are not allowed in messages");
-
-// Require messages to contain a ticket number
-RegexPatternGuardrail requireTicket = RegexPatternGuardrail.requiring(
-    "TICKET-\\d+", "Please include a ticket number (e.g., TICKET-123)");
-
-// Complex configuration with multiple patterns
-RegexPatternGuardrail customPatterns = RegexPatternGuardrail.builder()
-    .denyPattern("https?://[^\\s]+", "URLs are not allowed")
-    .denyPattern("\\b(password|secret)\\b", "Sensitive keywords are not allowed")
-    .requirePattern("[A-Z]{2,4}-\\d+", "Please include a valid issue ID")
-    .failOnFirstMatch(true)  // Stop checking after first failure
-    .build();
-----
-
-===== Not Empty Guardrail Configuration
-
-._Java-only: `NotEmptyGuardrail` configuration_
-[source,java]
-----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.NotEmptyGuardrail;
-
-// Default: just ensure response is not empty
-NotEmptyGuardrail notEmpty = new NotEmptyGuardrail();
-
-// Also detect refusal patterns like "I cannot", "I'm unable to"
-NotEmptyGuardrail withRefusalDetection = NotEmptyGuardrail.withRefusalDetection();
-
-// Require minimum meaningful length
-NotEmptyGuardrail minLength = NotEmptyGuardrail.withMinLength(50);
-
-// Custom configuration
-NotEmptyGuardrail customNotEmpty = new NotEmptyGuardrail(
-    true,   // detectRefusals
-    100     // minMeaningfulLength
-);
-----
-
-===== Word Count Guardrail Configuration
+// bind the retrievalAugmentor in the context
+context.getRegistry().bind("retrievalAugmentor", retrievalAugmentor);
 
-._Java-only: `WordCountGuardrail` builder API_
-[source,java]
+// using the producer
+String response = template.requestBody("direct:chat", body, String.class);
 ----
-import org.apache.camel.component.langchain4j.agent.api.guardrails.WordCountGuardrail;
 
-// Require at least 10 words
-WordCountGuardrail atLeast10 = WordCountGuardrail.atLeast(10);
+=== Chat with Memory
 
-// Limit to maximum 500 words
-WordCountGuardrail atMost500 = WordCountGuardrail.atMost(500);
+Memory functionality is supported by using `AgentWithMemory` and configuring a `ChatMemoryProvider` in the `AgentConfiguration`. The memory works for multiple users/sessions.
 
-// Require between 50 and 200 words
-WordCountGuardrail between = WordCountGuardrail.between(50, 200);
+[NOTE]
+====
+The component requires using a Chat Memory Provider that uses a https://docs.langchain4j.dev/tutorials/chat-memory#persistence[persistent memory store].
+====
 
-// Custom configuration
-WordCountGuardrail custom = WordCountGuardrail.builder()
-    .minWords(20)
-    .maxWords(1000)
-    .build();
-----
+The memory works for multiple users/sessions. For each context window, the users needs to set the memory ID:
+- By setting the Header CamelLangChain4jAgentMemoryId. This supposes that user is using a body as String.
+- By setting the AiAgentBody.memoryId field. This supposes that that user is using a body as AiAgentBody.
 
-==== Complete Example with Memory and Guardrails
+.Example of Route with Memory Agent
 
-._Java-only: `RouteBuilder` class with `AgentConfiguration`, guardrails, memory, and `doTry`/`doCatch`_
+[tabs]
+====
+Java::
++
 [source,java]
 ----
-ChatModel chatModel = OpenAiChatModel.builder()
-    .apiKey("{{openai.api.key}}")
-    .modelName("gpt-4o")
-    .build();
-
-ChatMemoryProvider memoryProvider = memoryId ->
-    MessageWindowChatMemory.withMaxMessages(20);
-
-AgentConfiguration configuration = new AgentConfiguration()
-    .withChatModel(chatModel)
-    .withChatMemoryProvider(memoryProvider)
-    .withInputGuardrailClasses(Guardrails.defaultInputGuardrails())
-    .withOutputGuardrailClasses(Guardrails.defaultOutputGuardrails());
-
-Agent secureAgent = new AgentWithMemory(configuration);
-getContext().getRegistry().bind("secureAgent", secureAgent);
-
 from("direct:chat")
-    .setHeader("CamelLangChain4jAgentMemoryId", simple("${header.userId}"))
-    .doTry()
-        .to("langchain4j-agent:chat?agent=#secureAgent")
-    .doCatch(dev.langchain4j.service.guardrail.GuardrailException.class)
-        .log("Guardrail blocked request: ${exception.message}")
-        .setBody(constant("Your message was blocked due to security policies."))
-    .end();
+    .to("langchain4j-agent:memory?agent=#memoryAgent")
 ----
 
-==== Spring Boot Configuration Example
-
-===== Using LangChain4j Spring Boot Starters (Recommended)
-
-When using Camel with Spring Boot, leverage LangChain4j's Spring Boot starters for automatic configuration of the ChatModel.
-
-Add the dependency for LangChain4j OpenAI Spring Boot starter:
-
-.pom.xml
+XML::
++
 [source,xml]
 ----
-<dependency>
-    <groupId>dev.langchain4j</groupId>
-    <artifactId>langchain4j-open-ai-spring-boot-starter</artifactId>
-    <version>1.10.0</version>
-    <!-- use the same version as your LangChain4j version -->
-</dependency>
-----
-
-Configure the OpenAI Chat Model in `application.properties`:
-
-.application.properties
-[source,properties]
-----
-langchain4j.open-ai.chat-model.api-key=${OPENAI_API_KEY}
-langchain4j.open-ai.chat-model.model-name=gpt-4o
-langchain4j.open-ai.chat-model.temperature=0.7
+<route>
+  <from uri="direct:chat"/>
+  <to uri="langchain4j-agent:memory?agent=#memoryAgent"/>
+</route>
 ----
 
-Create the Agent bean using the auto-configured ChatLanguageModel:
-
-._Java-only: Spring Boot `@Configuration` with auto-configured `ChatLanguageModel`_
-[source,java]
+YAML::
++
+[source,yaml]
 ----
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import dev.langchain4j.model.chat.ChatLanguageModel;
-import org.apache.camel.component.langchain4j.agent.api.Agent;
-import org.apache.camel.component.langchain4j.agent.api.AgentConfiguration;
-import org.apache.camel.component.langchain4j.agent.api.AgentWithoutMemory;
-import org.apache.camel.component.langchain4j.agent.api.guardrails.Guardrails;
-
-@Configuration
-public class AgentConfig {
-
-    @Bean("secureAgent")
-    public Agent secureAgent(ChatLanguageModel chatLanguageModel) {
-        AgentConfiguration config = new AgentConfiguration()
-            .withChatModel(chatLanguageModel)
-            .withInputGuardrailClasses(Guardrails.defaultInputGuardrails())
-            .withOutputGuardrailClasses(Guardrails.defaultOutputGuardrails());
-
-        return new AgentWithoutMemory(config);
-    }
-}
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: langchain4j-agent:memory
+            parameters:
+              agent: "#memoryAgent"
 ----
-
-[NOTE]
-====
-The `ChatLanguageModel` bean is automatically configured by the LangChain4j Spring Boot starter and injected into your configuration. You can also use other auto-configured beans such as:
-
-* `StreamingChatLanguageModel` - For streaming responses
-* `EmbeddingModel` - For generating embeddings
-* `ImageModel` - For image generation
-* `ModerationModel` - For content moderation
-
-Refer to the https://docs.langchain4j.dev/tutorials/spring-boot-integration[LangChain4j Spring Boot Integration documentation] for complete configuration options.
 ====
 
-===== Manual Configuration (Alternative)
-
-Alternatively, you can manually configure the ChatModel bean:
+.Example of usage with AiAgentBody
 
-._Java-only: Spring Boot `@Configuration` with manual `ChatModel` bean_
+._Java-only: `ChatMemoryProvider`, `AiAgentBody`, and ProducerTemplate test API_
 [source,java]
 ----
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-
-@Configuration
-public class AgentConfig {
+// Example of creating a Chat Memory Provider : Create a message window memory that keeps the last 10 messages
+        ChatMemoryProvider chatMemoryProvider = memoryId -> MessageWindowChatMemory.builder()
+                .id(memoryId)
+                .maxMessages(10)
+                .chatMemoryStore(store) // the Chat Memory store is previously created
+                .build();
 
-    @Bean
-    public ChatModel chatModel() {
-        return OpenAiChatModel.builder()
-            .apiKey(System.getenv("OPENAI_API_KEY"))
-            .modelName("gpt-4o")
-            .build();
-    }
+// bind the chat memory provider in the context
+context.getRegistry().bind("chatMemoryProvider", chatMemoryProvider);
 
-    @Bean("secureAgent")
-    public Agent secureAgent(ChatModel chatModel) {
-        AgentConfiguration config = new AgentConfiguration()
-            .withChatModel(chatModel)
-            .withInputGuardrailClasses(Guardrails.defaultInputGuardrails())
-            .withOutputGuardrailClasses(Guardrails.defaultOutputGuardrails());
 
-        return new AgentWithoutMemory(config);
-    }
-}
+AiAgentBody request = new AiAgentBody("Hello!", null, "session-123");
+String response = template.requestBody("direct:chat", request, String.class);
 ----
 
-==== Guardrail Behavior Summary
-
-[cols="1,1,2"]
-|===
-|Guardrail |When Triggered |Result
-
-|`InputLengthGuardrail`
-|Input too short/long
-|Blocks the request
-
-|`PiiDetectorGuardrail`
-|PII detected
-|Blocks the request
-
-|`PromptInjectionGuardrail`
-|Injection attempt detected
-|Blocks the request
-
-|`KeywordFilterGuardrail`
-|Blocked keyword found
-|Blocks the request
-
-|`LanguageGuardrail`
-|Disallowed language/script detected
-|Blocks the request
-
-|`CodeInjectionGuardrail`
-|Code injection pattern detected
-|Blocks the request
-
-|`RegexPatternGuardrail`
-|Deny pattern matched or require pattern missing
-|Blocks the request
-
-|`OutputLengthGuardrail`
-|Response too short/long
-|Retries LLM or truncates
-
-|`SensitiveDataOutputGuardrail`
-|Secrets in response
-|Blocks or redacts
-
-|`JsonFormatGuardrail`
-|Invalid JSON format
-|Retries LLM call
-
-|`KeywordOutputFilterGuardrail`
-|Blocked content in response
-|Blocks or redacts
-
-|`NotEmptyGuardrail`
-|Empty response or refusal detected
-|Retries LLM call
-
-|`WordCountGuardrail`
-|Word count outside allowed range
-|Retries LLM call
-|===
 
 === Structured Outputs with JSON Schema
 
@@ -2138,293 +1130,10 @@ You can also define the `ResponseFormat` at the `ChatModel` level. See the https
 * The same schema file can be shared across `camel-openai` and `camel-langchain4j-agent` components
 ====
 
-=== Multimodal Content Support
-
-The LangChain4j Agent component supports multimodal content, allowing you to send images, PDFs, audio, video, and text files to AI models that support vision and document understanding capabilities.
-
-==== Sending Multimodal Content via AiAgentBody
-
-You can explicitly create an `AiAgentBody` with multimodal content:
-
-._Java-only: `AiAgentBody` with `ImageContent`, `Files.readAllBytes()`, and ProducerTemplate test API_
-[source,java]
-----
-// Load an image and create ImageContent
-byte[] imageBytes = Files.readAllBytes(Path.of("image.png"));
-String base64Image = Base64.getEncoder().encodeToString(imageBytes);
-Image image = Image.builder()
-    .base64Data(base64Image)
-    .mimeType("image/png")
-    .build();
-ImageContent imageContent = ImageContent.from(image);
-
-// Create request body with image content
-AiAgentBody<ImageContent> body = new AiAgentBody<ImageContent>()
-    .withUserMessage("What do you see in this image?")
-    .withContent(imageContent);
-
-String response = template.requestBody("direct:chat", body, String.class);
-----
-
-==== Automatic File Conversion from Camel Components
-
-The agent component automatically converts files from various Camel components to multimodal content. This enables seamless integration with file-based sources.
-
-===== Supported Input Types
-
-[cols="1,2,2"]
-|===
-|Input Type |Source Components |MIME Type Detection
-
-|`WrappedFile`
-|`file:`, `ftp:`, `sftp:`, `smb:`
-|From file extension or headers
-
-|`byte[]`
-|`aws2-s3:`, `azure-storage-blob:`, `google-storage:`
-|From content type headers (required)
-
-|`InputStream`
-|Various streaming components
-|From content type headers (required)
-|===
-
-===== Example: Processing Images from File Component
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:inbox/images?noop=true&include=.*\\.png")
-    .setHeader("CamelLangChain4jAgentUserMessage", constant("Describe this image"))
-    .to("langchain4j-agent:vision?agent=#visionAgent")
-    .to("log:response");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="file:inbox/images?noop=true&amp;include=.*\.png"/>
-  <setHeader name="CamelLangChain4jAgentUserMessage">
-    <constant>Describe this image</constant>
-  </setHeader>
-  <to uri="langchain4j-agent:vision?agent=#visionAgent"/>
-  <to uri="log:response"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: file:inbox/images
-      parameters:
-        noop: true
-        include: ".*\\.png"
-      steps:
-        - setHeader:
-            name: CamelLangChain4jAgentUserMessage
-            constant: Describe this image
-        - to:
-            uri: langchain4j-agent:vision
-            parameters:
-              agent: "#visionAgent"
-        - to:
-            uri: log:response
-----
-====
-
-===== Example: Processing Files from AWS S3
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("aws2-s3://my-bucket?prefix=images/&includeBody=true")
-    .setHeader("CamelLangChain4jAgentUserMessage", constant("What do you see in this image?"))
-    .to("langchain4j-agent:vision?agent=#visionAgent")
-    .to("log:response");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="aws2-s3://my-bucket?prefix=images/&amp;includeBody=true"/>
-  <setHeader name="CamelLangChain4jAgentUserMessage">
-    <constant>What do you see in this image?</constant>
-  </setHeader>
-  <to uri="langchain4j-agent:vision?agent=#visionAgent"/>
-  <to uri="log:response"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: aws2-s3://my-bucket
-      parameters:
-        prefix: images/
-        includeBody: true
-      steps:
-        - setHeader:
-            name: CamelLangChain4jAgentUserMessage
-            constant: "What do you see in this image?"
-        - to:
-            uri: langchain4j-agent:vision
-            parameters:
-              agent: "#visionAgent"
-        - to:
-            uri: log:response
-----
-====
-
-[NOTE]
-====
-When using `byte[]` or `InputStream` inputs, a MIME type header is required since the type cannot be auto-detected from the content. The component checks for MIME type in this priority order:
-
-1. `CamelLangChain4jAgentMediaType` header (highest priority - explicit override)
-2. `CamelAwsS3ContentType` header (from AWS S3)
-3. `Content-Type` header
-4. `CamelFileContentType` header (from file components)
-====
-
-===== Example: Overriding MIME Type
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:process-file")
-    .setHeader("CamelLangChain4jAgentUserMessage", constant("Analyze this document"))
-    .setHeader("CamelLangChain4jAgentMediaType", constant("application/pdf"))
-    .to("langchain4j-agent:analyzer?agent=#analyzerAgent");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:process-file"/>
-  <setHeader name="CamelLangChain4jAgentUserMessage">
-    <constant>Analyze this document</constant>
-  </setHeader>
-  <setHeader name="CamelLangChain4jAgentMediaType">
-    <constant>application/pdf</constant>
-  </setHeader>
-  <to uri="langchain4j-agent:analyzer?agent=#analyzerAgent"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:process-file
-      steps:
-        - setHeader:
-            name: CamelLangChain4jAgentUserMessage
-            constant: Analyze this document
-        - setHeader:
-            name: CamelLangChain4jAgentMediaType
-            constant: application/pdf
-        - to:
-            uri: langchain4j-agent:analyzer
-            parameters:
-              agent: "#analyzerAgent"
-----
-====
-
-==== Complete Multimodal Route Example
-
-Here's a complete example showing how to process images from a file system and send them to an AI agent for analysis:
-
-._Java-only: `ChatModel` and `AgentConfiguration` bean registration_
-[source,java]
-----
-// Create a vision-capable chat model
-ChatModel chatModel = OpenAiChatModel.builder()
-    .apiKey(apiKey)
-    .modelName("gpt-4o")  // Vision-capable model
-    .build();
-
-// Create agent configuration
-AgentConfiguration configuration = new AgentConfiguration()
-    .withChatModel(chatModel);
-
-Agent visionAgent = new AgentWithoutMemory(configuration);
-context.getRegistry().bind("visionAgent", visionAgent);
-----
-
-Route to process images:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:inbox/images?noop=true&include=.*\\.(png|jpg|jpeg)")
-    .setHeader("CamelLangChain4jAgentUserMessage",
-        constant("Describe what you see in this image. Be detailed but concise."))
-    .to("langchain4j-agent:vision?agent=#visionAgent")
-    .log("AI Response: ${body}")
-    .to("file:outbox/descriptions");
-----
+== Sub-Pages
 
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="file:inbox/images?noop=true&amp;include=.*\.(png|jpg|jpeg)"/>
-  <setHeader name="CamelLangChain4jAgentUserMessage">
-    <constant>Describe what you see in this image. Be detailed but concise.</constant>
-  </setHeader>
-  <to uri="langchain4j-agent:vision?agent=#visionAgent"/>
-  <log message="AI Response: ${body}"/>
-  <to uri="file:outbox/descriptions"/>
-</route>
-----
+For more details on specific features, see:
 
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: file:inbox/images
-      parameters:
-        noop: true
-        include: ".*\\.(png|jpg|jpeg)"
-      steps:
-        - setHeader:
-            name: CamelLangChain4jAgentUserMessage
-            constant: "Describe what you see in this image. Be detailed but concise."
-        - to:
-            uri: langchain4j-agent:vision
-            parameters:
-              agent: "#visionAgent"
-        - log:
-            message: "AI Response: ${body}"
-        - to:
-            uri: file:outbox/descriptions
-----
-====
+* xref:others:langchain4j-agent-guardrails.adoc[Input and Output Guardrails] - Custom and built-in guardrails, presets, advanced configuration, and Spring Boot integration
+* xref:others:langchain4j-agent-mcp.adoc[MCP Tools Integration] - Model Context Protocol client configuration, tool filtering, and endpoint-level MCP setup
+* xref:others:langchain4j-agent-multimodal.adoc[Multimodal Content Support] - Image, PDF, audio, and video processing with automatic file conversion
diff --git a/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-guardrails.adoc b/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-guardrails.adoc
new file mode 100644
index 000000000000..c79d94ec21ba
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-guardrails.adoc
@@ -0,0 +1,670 @@
+= LangChain4j Agent - Input and Output Guardrails
+:tabs-sync-option:
+
+xref:ROOT:langchain4j-agent-component.adoc[Back to LangChain4j Agent Component]
+
+== Input and Output Guardrails
+
+Guardrails validate and filter AI interactions to ensure security and quality. The LangChain4j Agent component provides both custom guardrail support and a set of production-ready built-in guardrails.
+
+=== Using Custom Guardrails
+
+Create classes defining InputGuardrails and OutputGuardrails as defined in the https://docs.langchain4j.dev/tutorials/guardrails[LangChain4j Guardrails documentation] page.
+
+._Java-only: `AgentConfiguration` with guardrail classes and bean registration_
+[source,java]
+----
+// Create agent configuration with custom guardrails
+AgentConfiguration configuration = new AgentConfiguration()
+    .withChatModel(chatModel)
+    .withInputGuardrailClassesList("com.example.MyInputGuardrail")
+    .withOutputGuardrailClassesList("com.example.MyOutputGuardrail1,com.example.MyOutputGuardrail2");
+
+Agent safeAgent = new AgentWithoutMemory(configuration);
+context.getRegistry().bind("safeAgent", safeAgent);
+----
+
+Use the agent with guardrails:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:agent-with-guardrails")
+    .to("langchain4j-agent:safe?agent=#safeAgent")
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:agent-with-guardrails"/>
+  <to uri="langchain4j-agent:safe?agent=#safeAgent"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:agent-with-guardrails
+      steps:
+        - to:
+            uri: langchain4j-agent:safe
+            parameters:
+              agent: "#safeAgent"
+----
+====
+
+[NOTE]
+====
+The current version of the component returns a String as response. If the outputGuardrails extends JsonExtractorOutputGuardrail class, make sure to return a Json in String format.
+====
+
+=== Built-in Guardrails
+
+The `camel-langchain4j-agent-api` module provides production-ready guardrails in the `org.apache.camel.component.langchain4j.agent.api.guardrails` package.
+
+==== Available Input Guardrails
+
+[cols="1,2"]
+|===
+|Guardrail Class |Description
+
+|`InputLengthGuardrail`
+|Validates message length (min/max characters). Prevents excessively long inputs.
+
+|`PiiDetectorGuardrail`
+|Detects Personally Identifiable Information (email, phone, SSN, credit cards, IP addresses).
+
+|`PromptInjectionGuardrail`
+|Detects prompt injection attacks (role manipulation, jailbreaks, delimiter injection).
+
+|`KeywordFilterGuardrail`
+|Blocks messages containing specific keywords or patterns.
+
+|`LanguageGuardrail`
+|Validates the language/script of user messages. Can allow or block specific languages (English, Cyrillic, Chinese, Japanese, Korean, Arabic, Hebrew, Greek, Thai, Devanagari).
+
+|`CodeInjectionGuardrail`
+|Detects potential code injection attempts including shell commands, SQL injection, JavaScript, HTML/XSS, path traversal, command chaining, and template injection.
+
+|`RegexPatternGuardrail`
+|Flexible guardrail using custom regex patterns. Can define deny patterns (block if matched) and require patterns (must be present).
+|===
+
+==== Available Output Guardrails
+
+[cols="1,2"]
+|===
+|Guardrail Class |Description
+
+|`OutputLengthGuardrail`
+|Validates response length with optional truncation support.
+
+|`SensitiveDataOutputGuardrail`
+|Detects and optionally redacts sensitive data (API keys, passwords, JWT tokens, AWS keys).
+
+|`JsonFormatGuardrail`
+|Validates JSON format, extracts JSON from text, and checks for required fields.
+
+|`KeywordOutputFilterGuardrail`
+|Blocks or redacts specific content in AI responses.
+
+|`NotEmptyGuardrail`
+|Ensures AI responses are not empty or contain only whitespace. Can optionally detect refusal patterns (e.g., "I cannot", "I'm unable to").
+
+|`WordCountGuardrail`
+|Validates the word count of AI responses. Can enforce minimum, maximum, or range constraints.
+|===
+
+=== Quick Start with Default Guardrails
+
+The `Guardrails` helper class provides convenient factory methods:
+
+._Java-only: `Guardrails` factory methods and bean registration_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.Guardrails;
+
+// Create agent with default security guardrails
+AgentConfiguration configuration = new AgentConfiguration()
+    .withChatModel(chatModel)
+    .withInputGuardrailClasses(Guardrails.defaultInputGuardrails())
+    .withOutputGuardrailClasses(Guardrails.defaultOutputGuardrails());
+
+Agent secureAgent = new AgentWithoutMemory(configuration);
+context.getRegistry().bind("secureAgent", secureAgent);
+----
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:secure-chat")
+    .to("langchain4j-agent:chat?agent=#secureAgent");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:secure-chat"/>
+  <to uri="langchain4j-agent:chat?agent=#secureAgent"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:secure-chat
+      steps:
+        - to:
+            uri: langchain4j-agent:chat
+            parameters:
+              agent: "#secureAgent"
+----
+====
+
+The default guardrails include:
+
+* **Input**: `InputLengthGuardrail`, `PiiDetectorGuardrail`, `PromptInjectionGuardrail`
+* **Output**: `OutputLengthGuardrail`, `SensitiveDataOutputGuardrail`
+
+=== Using the Fluent Builder
+
+The `Guardrails.configure()` method provides a fluent API for building configurations:
+
+._Java-only: `Guardrails` fluent builder API_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.Guardrails;
+
+AgentConfiguration configuration = Guardrails.configure()
+    .withPiiDetection()
+    .withPromptInjectionDetection()
+    .withInputLengthValidation()
+    .withSensitiveDataDetection()
+    .withJsonFormatValidation()
+    .build();
+
+configuration.withChatModel(chatModel);
+
+Agent agent = new AgentWithoutMemory(configuration);
+----
+
+=== Using Specific Guardrail Classes
+
+You can specify exactly which guardrails to use:
+
+._Java-only: `AgentConfiguration` with specific guardrail classes_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.*;
+
+AgentConfiguration configuration = new AgentConfiguration()
+    .withChatModel(chatModel)
+    .withInputGuardrailClasses(List.of(
+        InputLengthGuardrail.class,
+        PiiDetectorGuardrail.class,
+        PromptInjectionGuardrail.class
+    ))
+    .withOutputGuardrailClasses(List.of(
+        SensitiveDataOutputGuardrail.class,
+        JsonFormatGuardrail.class
+    ));
+----
+
+=== Guardrail Presets
+
+The `Guardrails` class provides preset configurations for different security levels:
+
+._Java-only: `Guardrails` preset factory methods_
+[source,java]
+----
+// Minimal protection (just length validation)
+configuration.withInputGuardrailClasses(Guardrails.minimalInputGuardrails());
+
+// Standard protection (length, PII, prompt injection)
+configuration.withInputGuardrailClasses(Guardrails.defaultInputGuardrails());
+
+// Strict protection (all input guardrails)
+configuration.withInputGuardrailClasses(Guardrails.strictInputGuardrails());
+----
+
+=== Factory Methods for Individual Guardrails
+
+The `Guardrails` class provides static factory methods to create guardrail instances:
+
+._Java-only: `Guardrails` static factory methods_
+[source,java]
+----
+// Input guardrails
+InputLengthGuardrail lengthGuard = Guardrails.inputLength(5000);  // Max 5000 chars
+PiiDetectorGuardrail piiGuard = Guardrails.piiDetector();
+PromptInjectionGuardrail injectionGuard = Guardrails.promptInjectionStrict();
+KeywordFilterGuardrail keywordGuard = Guardrails.keywordFilter("banned", "blocked");
+
+// Output guardrails
+OutputLengthGuardrail outputLength = Guardrails.outputLengthTruncating(10000);
+SensitiveDataOutputGuardrail sensitiveData = Guardrails.sensitiveDataRedacting();
+JsonFormatGuardrail jsonGuard = Guardrails.jsonFormatWithFields("name", "email");
+----
+
+=== Advanced Guardrail Configuration with Builders
+
+Each guardrail provides a builder for custom configuration:
+
+==== PII Detection Configuration
+
+._Java-only: `PiiDetectorGuardrail` builder API_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.PiiDetectorGuardrail;
+import org.apache.camel.component.langchain4j.agent.api.guardrails.PiiDetectorGuardrail.PiiType;
+
+// Detect only specific PII types
+PiiDetectorGuardrail guardrail = PiiDetectorGuardrail.builder()
+    .detectTypes(PiiType.EMAIL, PiiType.PHONE, PiiType.SSN)
+    .blockOnDetection(true)
+    .build();
+----
+
+==== Prompt Injection Detection Configuration
+
+._Java-only: `PromptInjectionGuardrail` builder API_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.PromptInjectionGuardrail;
+
+// Strict mode: fail on any single pattern match
+PromptInjectionGuardrail strictGuardrail = PromptInjectionGuardrail.strict();
+
+// Custom patterns
+PromptInjectionGuardrail customGuardrail = PromptInjectionGuardrail.builder()
+    .strict(true)
+    .addPattern(
+        PromptInjectionGuardrail.InjectionCategory.JAILBREAK,
+        Pattern.compile("(?i)custom\\s+attack\\s+pattern"))
+    .build();
+----
+
+==== Sensitive Data Output Configuration
+
+._Java-only: `SensitiveDataOutputGuardrail` builder API_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.SensitiveDataOutputGuardrail;
+import org.apache.camel.component.langchain4j.agent.api.guardrails.SensitiveDataOutputGuardrail.*;
+
+// Redact sensitive data instead of blocking
+SensitiveDataOutputGuardrail guardrail = SensitiveDataOutputGuardrail.builder()
+    .detectTypes(SensitiveDataType.API_KEY, SensitiveDataType.SECRET, SensitiveDataType.JWT)
+    .action(Action.REDACT)
+    .redactionText("***REDACTED***")
+    .build();
+----
+
+==== JSON Format Validation Configuration
+
+._Java-only: `JsonFormatGuardrail` builder API_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.JsonFormatGuardrail;
+
+// Validate JSON with required fields
+JsonFormatGuardrail guardrail = JsonFormatGuardrail.builder()
+    .requireFields("id", "name", "email")
+    .extractJson(true)      // Extract JSON from surrounding text
+    .allowArray(false)      // Only allow objects, not arrays
+    .build();
+----
+
+==== Keyword Filtering Configuration
+
+._Java-only: `KeywordFilterGuardrail` and `KeywordOutputFilterGuardrail` builder APIs_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.KeywordFilterGuardrail;
+import org.apache.camel.component.langchain4j.agent.api.guardrails.KeywordOutputFilterGuardrail;
+
+// Input keyword filter
+KeywordFilterGuardrail inputFilter = KeywordFilterGuardrail.builder()
+    .blockedWords("spam", "inappropriate", "banned")
+    .blockedPattern("\\b(hack|exploit)\\b")
+    .caseSensitive(false)
+    .wholeWordMatch(true)
+    .build();
+
+// Output keyword filter with redaction
+KeywordOutputFilterGuardrail outputFilter = KeywordOutputFilterGuardrail.builder()
+    .blockedWords("confidential", "internal-only")
+    .action(KeywordOutputFilterGuardrail.Action.REDACT)
+    .redactionText("[REMOVED]")
+    .build();
+----
+
+==== Language Validation Configuration
+
+._Java-only: `LanguageGuardrail` builder API_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.LanguageGuardrail;
+import org.apache.camel.component.langchain4j.agent.api.guardrails.LanguageGuardrail.Language;
+
+// Allow only English input
+LanguageGuardrail englishOnly = LanguageGuardrail.allowOnly(Language.ENGLISH);
+
+// Allow English and Latin script languages (Spanish, French, German, etc.)
+LanguageGuardrail latinLanguages = LanguageGuardrail.allowOnly(
+    Language.ENGLISH, Language.LATIN_SCRIPT);
+
+// Block specific languages
+LanguageGuardrail blockCyrillic = LanguageGuardrail.block(Language.CYRILLIC);
+
+// Custom configuration with mixed content control
+LanguageGuardrail customLanguage = LanguageGuardrail.builder()
+    .allowedLanguages(Language.ENGLISH, Language.LATIN_SCRIPT)
+    .blockedLanguages(Language.CYRILLIC)
+    .allowMixed(false)  // Don't allow mixed language content
+    .build();
+----
+
+==== Code Injection Detection Configuration
+
+._Java-only: `CodeInjectionGuardrail` builder API_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.CodeInjectionGuardrail;
+import org.apache.camel.component.langchain4j.agent.api.guardrails.CodeInjectionGuardrail.InjectionType;
+
+// Default: detect all code injection types
+CodeInjectionGuardrail defaultGuard = new CodeInjectionGuardrail();
+
+// Strict mode: fail on any single pattern match
+CodeInjectionGuardrail strictGuard = CodeInjectionGuardrail.strict();
+
+// Detect only specific injection types
+CodeInjectionGuardrail sqlAndShellOnly = CodeInjectionGuardrail.forTypes(
+    InjectionType.SQL_INJECTION, InjectionType.SHELL_COMMAND);
+
+// Custom configuration
+CodeInjectionGuardrail customGuard = CodeInjectionGuardrail.builder()
+    .detectTypes(InjectionType.SQL_INJECTION, InjectionType.JAVASCRIPT, InjectionType.PATH_TRAVERSAL)
+    .strict(true)
+    .build();
+----
+
+==== Regex Pattern Guardrail Configuration
+
+._Java-only: `RegexPatternGuardrail` builder API_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.RegexPatternGuardrail;
+
+// Block messages containing URLs
+RegexPatternGuardrail noUrls = RegexPatternGuardrail.blocking(
+    "https?://[^\\s]+", "URLs are not allowed in messages");
+
+// Require messages to contain a ticket number
+RegexPatternGuardrail requireTicket = RegexPatternGuardrail.requiring(
+    "TICKET-\\d+", "Please include a ticket number (e.g., TICKET-123)");
+
+// Complex configuration with multiple patterns
+RegexPatternGuardrail customPatterns = RegexPatternGuardrail.builder()
+    .denyPattern("https?://[^\\s]+", "URLs are not allowed")
+    .denyPattern("\\b(password|secret)\\b", "Sensitive keywords are not allowed")
+    .requirePattern("[A-Z]{2,4}-\\d+", "Please include a valid issue ID")
+    .failOnFirstMatch(true)  // Stop checking after first failure
+    .build();
+----
+
+==== Not Empty Guardrail Configuration
+
+._Java-only: `NotEmptyGuardrail` configuration_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.NotEmptyGuardrail;
+
+// Default: just ensure response is not empty
+NotEmptyGuardrail notEmpty = new NotEmptyGuardrail();
+
+// Also detect refusal patterns like "I cannot", "I'm unable to"
+NotEmptyGuardrail withRefusalDetection = NotEmptyGuardrail.withRefusalDetection();
+
+// Require minimum meaningful length
+NotEmptyGuardrail minLength = NotEmptyGuardrail.withMinLength(50);
+
+// Custom configuration
+NotEmptyGuardrail customNotEmpty = new NotEmptyGuardrail(
+    true,   // detectRefusals
+    100     // minMeaningfulLength
+);
+----
+
+==== Word Count Guardrail Configuration
+
+._Java-only: `WordCountGuardrail` builder API_
+[source,java]
+----
+import org.apache.camel.component.langchain4j.agent.api.guardrails.WordCountGuardrail;
+
+// Require at least 10 words
+WordCountGuardrail atLeast10 = WordCountGuardrail.atLeast(10);
+
+// Limit to maximum 500 words
+WordCountGuardrail atMost500 = WordCountGuardrail.atMost(500);
+
+// Require between 50 and 200 words
+WordCountGuardrail between = WordCountGuardrail.between(50, 200);
+
+// Custom configuration
+WordCountGuardrail custom = WordCountGuardrail.builder()
+    .minWords(20)
+    .maxWords(1000)
+    .build();
+----
+
+=== Complete Example with Memory and Guardrails
+
+._Java-only: `RouteBuilder` class with `AgentConfiguration`, guardrails, memory, and `doTry`/`doCatch`_
+[source,java]
+----
+ChatModel chatModel = OpenAiChatModel.builder()
+    .apiKey("{{openai.api.key}}")
+    .modelName("gpt-4o")
+    .build();
+
+ChatMemoryProvider memoryProvider = memoryId ->
+    MessageWindowChatMemory.withMaxMessages(20);
+
+AgentConfiguration configuration = new AgentConfiguration()
+    .withChatModel(chatModel)
+    .withChatMemoryProvider(memoryProvider)
+    .withInputGuardrailClasses(Guardrails.defaultInputGuardrails())
+    .withOutputGuardrailClasses(Guardrails.defaultOutputGuardrails());
+
+Agent secureAgent = new AgentWithMemory(configuration);
+getContext().getRegistry().bind("secureAgent", secureAgent);
+
+from("direct:chat")
+    .setHeader("CamelLangChain4jAgentMemoryId", simple("${header.userId}"))
+    .doTry()
+        .to("langchain4j-agent:chat?agent=#secureAgent")
+    .doCatch(dev.langchain4j.service.guardrail.GuardrailException.class)
+        .log("Guardrail blocked request: ${exception.message}")
+        .setBody(constant("Your message was blocked due to security policies."))
+    .end();
+----
+
+=== Spring Boot Configuration Example
+
+==== Using LangChain4j Spring Boot Starters (Recommended)
+
+When using Camel with Spring Boot, leverage LangChain4j's Spring Boot starters for automatic configuration of the ChatModel.
+
+Add the dependency for LangChain4j OpenAI Spring Boot starter:
+
+.pom.xml
+[source,xml]
+----
+<dependency>
+    <groupId>dev.langchain4j</groupId>
+    <artifactId>langchain4j-open-ai-spring-boot-starter</artifactId>
+    <version>1.10.0</version>
+    <!-- use the same version as your LangChain4j version -->
+</dependency>
+----
+
+Configure the OpenAI Chat Model in `application.properties`:
+
+.application.properties
+[source,properties]
+----
+langchain4j.open-ai.chat-model.api-key=${OPENAI_API_KEY}
+langchain4j.open-ai.chat-model.model-name=gpt-4o
+langchain4j.open-ai.chat-model.temperature=0.7
+----
+
+Create the Agent bean using the auto-configured ChatLanguageModel:
+
+._Java-only: Spring Boot `@Configuration` with auto-configured `ChatLanguageModel`_
+[source,java]
+----
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import dev.langchain4j.model.chat.ChatLanguageModel;
+import org.apache.camel.component.langchain4j.agent.api.Agent;
+import org.apache.camel.component.langchain4j.agent.api.AgentConfiguration;
+import org.apache.camel.component.langchain4j.agent.api.AgentWithoutMemory;
+import org.apache.camel.component.langchain4j.agent.api.guardrails.Guardrails;
+
+@Configuration
+public class AgentConfig {
+
+    @Bean("secureAgent")
+    public Agent secureAgent(ChatLanguageModel chatLanguageModel) {
+        AgentConfiguration config = new AgentConfiguration()
+            .withChatModel(chatLanguageModel)
+            .withInputGuardrailClasses(Guardrails.defaultInputGuardrails())
+            .withOutputGuardrailClasses(Guardrails.defaultOutputGuardrails());
+
+        return new AgentWithoutMemory(config);
+    }
+}
+----
+
+[NOTE]
+====
+The `ChatLanguageModel` bean is automatically configured by the LangChain4j Spring Boot starter and injected into your configuration. You can also use other auto-configured beans such as:
+
+* `StreamingChatLanguageModel` - For streaming responses
+* `EmbeddingModel` - For generating embeddings
+* `ImageModel` - For image generation
+* `ModerationModel` - For content moderation
+
+Refer to the https://docs.langchain4j.dev/tutorials/spring-boot-integration[LangChain4j Spring Boot Integration documentation] for complete configuration options.
+====
+
+==== Manual Configuration (Alternative)
+
+Alternatively, you can manually configure the ChatModel bean:
+
+._Java-only: Spring Boot `@Configuration` with manual `ChatModel` bean_
+[source,java]
+----
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class AgentConfig {
+
+    @Bean
+    public ChatModel chatModel() {
+        return OpenAiChatModel.builder()
+            .apiKey(System.getenv("OPENAI_API_KEY"))
+            .modelName("gpt-4o")
+            .build();
+    }
+
+    @Bean("secureAgent")
+    public Agent secureAgent(ChatModel chatModel) {
+        AgentConfiguration config = new AgentConfiguration()
+            .withChatModel(chatModel)
+            .withInputGuardrailClasses(Guardrails.defaultInputGuardrails())
+            .withOutputGuardrailClasses(Guardrails.defaultOutputGuardrails());
+
+        return new AgentWithoutMemory(config);
+    }
+}
+----
+
+=== Guardrail Behavior Summary
+
+[cols="1,1,2"]
+|===
+|Guardrail |When Triggered |Result
+
+|`InputLengthGuardrail`
+|Input too short/long
+|Blocks the request
+
+|`PiiDetectorGuardrail`
+|PII detected
+|Blocks the request
+
+|`PromptInjectionGuardrail`
+|Injection attempt detected
+|Blocks the request
+
+|`KeywordFilterGuardrail`
+|Blocked keyword found
+|Blocks the request
+
+|`LanguageGuardrail`
+|Disallowed language/script detected
+|Blocks the request
+
+|`CodeInjectionGuardrail`
+|Code injection pattern detected
+|Blocks the request
+
+|`RegexPatternGuardrail`
+|Deny pattern matched or require pattern missing
+|Blocks the request
+
+|`OutputLengthGuardrail`
+|Response too short/long
+|Retries LLM or truncates
+
+|`SensitiveDataOutputGuardrail`
+|Secrets in response
+|Blocks or redacts
+
+|`JsonFormatGuardrail`
+|Invalid JSON format
+|Retries LLM call
+
+|`KeywordOutputFilterGuardrail`
+|Blocked content in response
+|Blocks or redacts
+
+|`NotEmptyGuardrail`
+|Empty response or refusal detected
+|Retries LLM call
+
+|`WordCountGuardrail`
+|Word count outside allowed range
+|Retries LLM call
+|===
diff --git a/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-mcp.adoc b/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-mcp.adoc
new file mode 100644
index 000000000000..354e1175f6d0
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-mcp.adoc
@@ -0,0 +1,346 @@
+= LangChain4j Agent - MCP Tools Integration
+:tabs-sync-option:
+
+xref:ROOT:langchain4j-agent-component.adoc[Back to LangChain4j Agent Component]
+
+== MCP (Model Context Protocol) Tools
+
+The LangChain4j Agent component supports integration with MCP (Model Context Protocol) tools, allowing agents to interact with external systems and services through standardized protocols.
+
+=== Configuring MCP Clients
+
+To use MCP tools with your agent, you need to configure MCP clients in your `AgentConfiguration`:
+
+._Java-only: LangChain4j MCP transport and client configuration_
+[source,java]
+----
+// Create MCP transport for filesystem server
+McpTransport filesystemTransport = new StdioMcpTransport.Builder()
+    .command(Arrays.asList("npx", "-y", "@modelcontextprotocol/server-filesystem", "/path/to/directory"))
+    .logEvents(true)
+    .build();
+
+// Create MCP client
+McpClient filesystemClient = new DefaultMcpClient.Builder()
+    .transport(filesystemTransport)
+    .build();
+
+// Create agent configuration with MCP clients
+AgentConfiguration config = new AgentConfiguration()
+    .withChatModel(chatModel)
+    .withMcpClients(Arrays.asList(filesystemClient));
+
+// Create agent
+Agent agent = new AgentWithoutMemory(config);
+----
+
+=== MCP Tool Filtering
+
+You can apply filters to control which MCP tools are available to your agent:
+
+._Java-only: `BiPredicate` filter with LangChain4j `ToolSpecification`_
+[source,java]
+----
+// Create security filter to only allow read operations
+BiPredicate<McpClient, ToolSpecification> securityFilter = (client, toolSpec) -> {
+    String toolName = toolSpec.name().toLowerCase();
+    // Only allow read operations for safety
+    return toolName.contains("read") || toolName.contains("list") || toolName.contains("get");
+};
+
+AgentConfiguration config = new AgentConfiguration()
+    .withChatModel(chatModel)
+    .withMcpClients(Arrays.asList(filesystemClient))
+    .withMcpToolProviderFilter(securityFilter);
+----
+
+=== Complete MCP Example
+
+Here's a complete example showing how to use MCP tools with an agent:
+
+._Java-only: LangChain4j MCP client setup and bean registration_
+[source,java]
+----
+// Create MCP client for filesystem access
+McpTransport transport = new StdioMcpTransport.Builder()
+    .command(Arrays.asList("npx", "-y", "@modelcontextprotocol/server-filesystem", "/tmp"))
+    .logEvents(true)
+    .build();
+
+McpClient mcpClient = new DefaultMcpClient.Builder()
+    .transport(transport)
+    .build();
+
+// Create agent with MCP tools
+AgentConfiguration config = new AgentConfiguration()
+    .withChatModel(chatModel)
+    .withMcpClient(mcpClient);
+
+Agent agent = new AgentWithoutMemory(config);
+
+// Register agent in Camel context
+context.getRegistry().bind("mcpAgent", agent);
+----
+
+=== Route Configuration with MCP Tools
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .to("langchain4j-agent:assistant?agent=#mcpAgent")
+    .to("mock:agent-response");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:chat"/>
+  <to uri="langchain4j-agent:assistant?agent=#mcpAgent"/>
+  <to uri="mock:agent-response"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: langchain4j-agent:assistant
+            parameters:
+              agent: "#mcpAgent"
+        - to:
+            uri: mock:agent-response
+----
+====
+
+=== Usage Example with MCP Tools
+
+._Java-only: ProducerTemplate test API_
+[source,java]
+----
+String response = template.requestBody("direct:chat",
+    "Can you list the files in the current directory and read the content of file.txt?", String.class);
+----
+
+=== Endpoint-Level MCP Configuration
+
+MCP servers can also be configured directly on the endpoint, without setting them on the `AgentConfiguration`. This is useful for declarative route definitions and allows MCP tools to coexist with Camel route tools (via `tags`).
+
+==== Bean References
+
+Register pre-built `McpClient` beans and reference them via the `mcpClients` endpoint parameter:
+
+._Java-only: LangChain4j `McpClient` bean registration_
+[source,java]
+----
+// Register MCP clients as beans
+McpClient timeClient = new DefaultMcpClient.Builder()
+    .key("time")
+    .transport(new StdioMcpTransport.Builder()
+        .command(Arrays.asList("docker", "run", "-i", "--rm", "mcp/time"))
+        .build())
+    .build();
+context.getRegistry().bind("timeMcpClient", timeClient);
+----
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .to("langchain4j-agent:assistant?agent=#myAgent&tags=users&mcpClients=#timeMcpClient")
+    .to("mock:response");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:chat"/>
+  <to uri="langchain4j-agent:assistant?agent=#myAgent&amp;tags=users&amp;mcpClients=#timeMcpClient"/>
+  <to uri="mock:response"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: langchain4j-agent:assistant
+            parameters:
+              agent: "#myAgent"
+              tags: users
+              mcpClients: "#timeMcpClient"
+        - to:
+            uri: mock:response
+----
+====
+
+==== Inline URI Configuration
+
+MCP servers can be defined inline on the endpoint URI using the `mcpServer.<name>.<property>` pattern. The component creates and manages the MCP client lifecycle automatically.
+
+Supported properties:
+
+[cols="1,1,3"]
+|===
+| Property | Default | Description
+
+| `transportType` | `stdio` | Transport type: `stdio`, `http` or `streamableHttp` (Streamable HTTP), or `sse` (legacy SSE)
+| `command` | | Comma-separated command for stdio transport (e.g., `docker,run,-i,--rm,mcp/time`)
+| `url` | | Server URL for `http` or `sse` transport
+| `environment.<key>` | | Environment variables for stdio transport
+| `timeout` | `60` | Timeout in seconds
+| `logRequests` | `false` | Log requests sent to the MCP server
+| `logResponses` | `false` | Log responses from the MCP server
+| `oauthProfile` | | OAuth profile name for HTTP transport auth (Client Credentials grant, requires `camel-oauth`)
+|===
+
+Example with two MCP servers configured inline:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .to("langchain4j-agent:assistant?agent=#myAgent&tags=users&mcpServer.everything.transportType=http&mcpServer.everything.url=http://localhost:3001/mcp&mcpServer.time.transportType=stdio&mcpServer.time.command=docker,run,-i,--rm,mcp/time")
+    .to("mock:response");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:chat"/>
+  <to uri="langchain4j-agent:assistant?agent=#myAgent&amp;tags=users&amp;mcpServer.everything.transportType=http&amp;mcpServer.everything.url=http://localhost:3001/mcp&amp;mcpServer.time.transportType=stdio&amp;mcpServer.time.command=docker,run,-i,--rm,mcp/time"/>
+  <to uri="mock:response"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: langchain4j-agent:assistant
+            parameters:
+              agent: "#myAgent"
+              tags: users
+              mcpServer.everything.transportType: http
+              mcpServer.everything.url: "http://localhost:3001/mcp"
+              mcpServer.time.transportType: stdio
+              mcpServer.time.command: "docker,run,-i,--rm,mcp/time"
+        - to:
+            uri: mock:response
+----
+====
+
+Both `mcpClients` (bean references) and `mcpServer` (inline) can be used together on the same endpoint. All tool sources -- Camel route tools, endpoint-level MCP tools, and agent-level MCP tools -- are automatically composed into a single tool provider.
+
+=== Dynamic Tool Exclusion via Headers
+
+Tools can be dynamically excluded on a per-message basis using Camel headers. This allows routes to control which tools are available based on business logic, user roles, or message content.
+
+[cols="1,3"]
+|===
+| Header | Description
+
+| `CamelLangChain4jAgentExcludeTags` | Comma-separated list of Camel tool tags to exclude
+| `CamelLangChain4jAgentExcludeMcpServers` | Comma-separated list of MCP server names (keys) to exclude
+|===
+
+Example -- exclude specific tools based on a condition:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .choice()
+        .when(header("userRole").isEqualTo("readonly"))
+            .setHeader("CamelLangChain4jAgentExcludeTags", constant("admin-tools"))
+            .setHeader("CamelLangChain4jAgentExcludeMcpServers", constant("filesystem"))
+    .end()
+    .to("langchain4j-agent:assistant?agent=#myAgent&tags=users,admin-tools&mcpClients=#fsMcpClient,#timeMcpClient")
+    .to("mock:response");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:chat"/>
+  <choice>
+    <when>
+      <simple>${header.userRole} == 'readonly'</simple>
+      <setHeader name="CamelLangChain4jAgentExcludeTags">
+        <constant>admin-tools</constant>
+      </setHeader>
+      <setHeader name="CamelLangChain4jAgentExcludeMcpServers">
+        <constant>filesystem</constant>
+      </setHeader>
+    </when>
+  </choice>
+  <to uri="langchain4j-agent:assistant?agent=#myAgent&amp;tags=users,admin-tools&amp;mcpClients=#fsMcpClient,#timeMcpClient"/>
+  <to uri="mock:response"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - choice:
+            when:
+              - simple: "${header.userRole} == 'readonly'"
+                steps:
+                  - setHeader:
+                      name: CamelLangChain4jAgentExcludeTags
+                      constant: admin-tools
+                  - setHeader:
+                      name: CamelLangChain4jAgentExcludeMcpServers
+                      constant: filesystem
+        - to:
+            uri: langchain4j-agent:assistant
+            parameters:
+              agent: "#myAgent"
+              tags: users,admin-tools
+              mcpClients: "#fsMcpClient,#timeMcpClient"
+        - to:
+            uri: mock:response
+----
+====
+
+MCP servers are matched by their key, which is set via `DefaultMcpClient.Builder.key(name)` or automatically from the server name in inline `mcpServer.<name>` configuration. MCP clients without a key are never excluded.
diff --git a/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-multimodal.adoc b/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-multimodal.adoc
new file mode 100644
index 000000000000..51a7287a3614
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-multimodal.adoc
@@ -0,0 +1,295 @@
+= LangChain4j Agent - Multimodal Content Support
+:tabs-sync-option:
+
+xref:ROOT:langchain4j-agent-component.adoc[Back to LangChain4j Agent Component]
+
+== Multimodal Content Support
+
+The LangChain4j Agent component supports multimodal content, allowing you to send images, PDFs, audio, video, and text files to AI models that support vision and document understanding capabilities.
+
+=== Sending Multimodal Content via AiAgentBody
+
+You can explicitly create an `AiAgentBody` with multimodal content:
+
+._Java-only: `AiAgentBody` with `ImageContent`, `Files.readAllBytes()`, and ProducerTemplate test API_
+[source,java]
+----
+// Load an image and create ImageContent
+byte[] imageBytes = Files.readAllBytes(Path.of("image.png"));
+String base64Image = Base64.getEncoder().encodeToString(imageBytes);
+Image image = Image.builder()
+    .base64Data(base64Image)
+    .mimeType("image/png")
+    .build();
+ImageContent imageContent = ImageContent.from(image);
+
+// Create request body with image content
+AiAgentBody<ImageContent> body = new AiAgentBody<ImageContent>()
+    .withUserMessage("What do you see in this image?")
+    .withContent(imageContent);
+
+String response = template.requestBody("direct:chat", body, String.class);
+----
+
+=== Automatic File Conversion from Camel Components
+
+The agent component automatically converts files from various Camel components to multimodal content. This enables seamless integration with file-based sources.
+
+==== Supported Input Types
+
+[cols="1,2,2"]
+|===
+|Input Type |Source Components |MIME Type Detection
+
+|`WrappedFile`
+|`file:`, `ftp:`, `sftp:`, `smb:`
+|From file extension or headers
+
+|`byte[]`
+|`aws2-s3:`, `azure-storage-blob:`, `google-storage:`
+|From content type headers (required)
+
+|`InputStream`
+|Various streaming components
+|From content type headers (required)
+|===
+
+==== Example: Processing Images from File Component
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:inbox/images?noop=true&include=.*\\.png")
+    .setHeader("CamelLangChain4jAgentUserMessage", constant("Describe this image"))
+    .to("langchain4j-agent:vision?agent=#visionAgent")
+    .to("log:response");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="file:inbox/images?noop=true&amp;include=.*\.png"/>
+  <setHeader name="CamelLangChain4jAgentUserMessage">
+    <constant>Describe this image</constant>
+  </setHeader>
+  <to uri="langchain4j-agent:vision?agent=#visionAgent"/>
+  <to uri="log:response"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:inbox/images
+      parameters:
+        noop: true
+        include: ".*\\.png"
+      steps:
+        - setHeader:
+            name: CamelLangChain4jAgentUserMessage
+            constant: Describe this image
+        - to:
+            uri: langchain4j-agent:vision
+            parameters:
+              agent: "#visionAgent"
+        - to:
+            uri: log:response
+----
+====
+
+==== Example: Processing Files from AWS S3
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("aws2-s3://my-bucket?prefix=images/&includeBody=true")
+    .setHeader("CamelLangChain4jAgentUserMessage", constant("What do you see in this image?"))
+    .to("langchain4j-agent:vision?agent=#visionAgent")
+    .to("log:response");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="aws2-s3://my-bucket?prefix=images/&amp;includeBody=true"/>
+  <setHeader name="CamelLangChain4jAgentUserMessage">
+    <constant>What do you see in this image?</constant>
+  </setHeader>
+  <to uri="langchain4j-agent:vision?agent=#visionAgent"/>
+  <to uri="log:response"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: aws2-s3://my-bucket
+      parameters:
+        prefix: images/
+        includeBody: true
+      steps:
+        - setHeader:
+            name: CamelLangChain4jAgentUserMessage
+            constant: "What do you see in this image?"
+        - to:
+            uri: langchain4j-agent:vision
+            parameters:
+              agent: "#visionAgent"
+        - to:
+            uri: log:response
+----
+====
+
+[NOTE]
+====
+When using `byte[]` or `InputStream` inputs, a MIME type header is required since the type cannot be auto-detected from the content. The component checks for MIME type in this priority order:
+
+1. `CamelLangChain4jAgentMediaType` header (highest priority - explicit override)
+2. `CamelAwsS3ContentType` header (from AWS S3)
+3. `Content-Type` header
+4. `CamelFileContentType` header (from file components)
+====
+
+==== Example: Overriding MIME Type
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:process-file")
+    .setHeader("CamelLangChain4jAgentUserMessage", constant("Analyze this document"))
+    .setHeader("CamelLangChain4jAgentMediaType", constant("application/pdf"))
+    .to("langchain4j-agent:analyzer?agent=#analyzerAgent");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:process-file"/>
+  <setHeader name="CamelLangChain4jAgentUserMessage">
+    <constant>Analyze this document</constant>
+  </setHeader>
+  <setHeader name="CamelLangChain4jAgentMediaType">
+    <constant>application/pdf</constant>
+  </setHeader>
+  <to uri="langchain4j-agent:analyzer?agent=#analyzerAgent"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:process-file
+      steps:
+        - setHeader:
+            name: CamelLangChain4jAgentUserMessage
+            constant: Analyze this document
+        - setHeader:
+            name: CamelLangChain4jAgentMediaType
+            constant: application/pdf
+        - to:
+            uri: langchain4j-agent:analyzer
+            parameters:
+              agent: "#analyzerAgent"
+----
+====
+
+=== Complete Multimodal Route Example
+
+Here's a complete example showing how to process images from a file system and send them to an AI agent for analysis:
+
+._Java-only: `ChatModel` and `AgentConfiguration` bean registration_
+[source,java]
+----
+// Create a vision-capable chat model
+ChatModel chatModel = OpenAiChatModel.builder()
+    .apiKey(apiKey)
+    .modelName("gpt-4o")  // Vision-capable model
+    .build();
+
+// Create agent configuration
+AgentConfiguration configuration = new AgentConfiguration()
+    .withChatModel(chatModel);
+
+Agent visionAgent = new AgentWithoutMemory(configuration);
+context.getRegistry().bind("visionAgent", visionAgent);
+----
+
+Route to process images:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:inbox/images?noop=true&include=.*\\.(png|jpg|jpeg)")
+    .setHeader("CamelLangChain4jAgentUserMessage",
+        constant("Describe what you see in this image. Be detailed but concise."))
+    .to("langchain4j-agent:vision?agent=#visionAgent")
+    .log("AI Response: ${body}")
+    .to("file:outbox/descriptions");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="file:inbox/images?noop=true&amp;include=.*\.(png|jpg|jpeg)"/>
+  <setHeader name="CamelLangChain4jAgentUserMessage">
+    <constant>Describe what you see in this image. Be detailed but concise.</constant>
+  </setHeader>
+  <to uri="langchain4j-agent:vision?agent=#visionAgent"/>
+  <log message="AI Response: ${body}"/>
+  <to uri="file:outbox/descriptions"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:inbox/images
+      parameters:
+        noop: true
+        include: ".*\\.(png|jpg|jpeg)"
+      steps:
+        - setHeader:
+            name: CamelLangChain4jAgentUserMessage
+            constant: "Describe what you see in this image. Be detailed but concise."
+        - to:
+            uri: langchain4j-agent:vision
+            parameters:
+              agent: "#visionAgent"
+        - log:
+            message: "AI Response: ${body}"
+        - to:
+            uri: file:outbox/descriptions
+----
+====
diff --git a/components/camel-ai/camel-openai/src/main/docs/openai-component.adoc b/components/camel-ai/camel-openai/src/main/docs/openai-component.adoc
index 3f96bc3c01a3..ee3cac44cb51 100644
--- a/components/camel-ai/camel-openai/src/main/docs/openai-component.adoc
+++ b/components/camel-ai/camel-openai/src/main/docs/openai-component.adoc
@@ -1000,1070 +1000,13 @@ String-valued fields are set directly. Non-string fields (numbers, booleans, obj
 
 NOTE: This maps fields from the response message's additional properties (fields not part of the standard schema). Standard response fields like `content`, `role`, and `tool_calls` are not accessible through this option.
 
-== OpenAI-Compatible Providers
+== Sub-Pages
 
-Because the component speaks the OpenAI API, you do not need a separate component to use third-party
-gateways or local model servers that expose an OpenAI-compatible API. Point `baseUrl` at the provider,
-set `apiKey` if it requires one, and use the same operations and options as with OpenAI.
+For more details on specific features, see:
 
-NOTE: Ensure the provider supports the chat completions and/or embeddings endpoint format you use.
-Authentication requirements and minor API variations differ between providers.
-
-[cols="1,2,2",options="header"]
-|===
-| Provider | `baseUrl` | Notes
-
-| OpenAI | `https://api.openai.com/v1` | Default; `baseUrl` can be omitted
-| OpenRouter | `https://openrouter.ai/api/v1` | Multi-model gateway with provider routing and fallbacks
-| Ollama | `http://localhost:11434/v1` | Local LLM server
-| LM Studio | `http://localhost:1234/v1` | Local model runner
-| vLLM | `http://localhost:8000/v1` | High-throughput, self-hosted serving engine
-|===
-
-=== Ollama (local)
-
-https://ollama.com[Ollama] runs models locally and does not require an API key. Install Ollama and
-pull the model used in the example below:
-
-[source,bash]
-----
-ollama run llama3.2
-----
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .setBody(constant("What is Apache Camel?"))
-    .to("openai:chat-completion?baseUrl=http://localhost:11434/v1&model=llama3.2");
-----
-
-YAML::
-+
-[source,yaml]
-----
-- to:
-    uri: openai:chat-completion
-    parameters:
-      baseUrl: http://localhost:11434/v1
-      model: llama3.2
-      userMessage: What is Apache Camel?
-----
-====
-
-For local embeddings, use an embedding model such as `nomic-embed-text` (see the *Embedding Models by
-Provider* table below).
-
-=== LM Studio (local)
-
-https://lmstudio.ai[LM Studio] serves the model currently loaded in the app. Set `model` to the
-identifier shown in its UI.
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("openai:chat-completion?baseUrl=http://localhost:1234/v1&model=local-model");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="openai:chat-completion?baseUrl=http://localhost:1234/v1&amp;model=local-model"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              baseUrl: http://localhost:1234/v1
-              model: local-model
-----
-====
-
-=== vLLM (self-hosted)
-
-https://docs.vllm.ai[vLLM] is a high-throughput LLM serving engine. Install it with `pip install vllm`
-and start the model used in the example below:
-
-[source,bash]
-----
-vllm serve meta-llama/Llama-3.1-8B-Instruct --port 8000
-----
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("openai:chat-completion?baseUrl=http://localhost:8000/v1"
-        + "&model=meta-llama/Llama-3.1-8B-Instruct");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="openai:chat-completion?baseUrl=http://localhost:8000/v1&amp;model=meta-llama/Llama-3.1-8B-Instruct"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              baseUrl: http://localhost:8000/v1
-              model: meta-llama/Llama-3.1-8B-Instruct
-----
-====
-
-If vLLM was started with `--api-key`, pass the same value via the `apiKey` option.
-
-On Apple Silicon, the `vllm-mlx` variant uses Apple's MLX framework and runs the same way:
-
-[source,bash]
-----
-vllm-mlx serve mlx-community/Qwen2.5-7B-Instruct-4bit --port 8000
-----
-
-=== OpenRouter
-
-https://openrouter.ai[OpenRouter] is an OpenAI-compatible gateway that routes requests across many
-model providers. Set `baseUrl` to its endpoint and select a model with a cross-provider identifier:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("openai:chat-completion?baseUrl=https://openrouter.ai/api/v1"
-        + "&apiKey={{openrouter.api.key}}"
-        + "&model=anthropic/claude-sonnet-4-20250514");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="openai:chat-completion?baseUrl=https://openrouter.ai/api/v1&amp;apiKey={{openrouter.api.key}}&amp;model=anthropic/claude-sonnet-4-20250514"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              baseUrl: https://openrouter.ai/api/v1
-              apiKey: "{{openrouter.api.key}}"
-              model: anthropic/claude-sonnet-4-20250514
-----
-====
-
-==== Provider Routing
-
-OpenRouter accepts a `provider` object in the request body to control routing order and fallbacks.
-Pass it through the `additionalBodyProperty` option as a JSON value — the component parses JSON-valued
-properties and adds them to the request body:
-
-[source,yaml]
-----
-- to:
-    uri: openai:chat-completion
-    parameters:
-      baseUrl: https://openrouter.ai/api/v1
-      apiKey: "{{openrouter.api.key}}"
-      model: anthropic/claude-sonnet-4-20250514
-      additionalBodyProperty.provider: '{"order":["anthropic","google"],"allow_fallbacks":false}'
-----
-
-[NOTE]
-====
-OpenRouter's optional attribution headers (`HTTP-Referer` and `X-Title`, which identify your app on
-the OpenRouter rankings) are sent as HTTP request headers, not body properties. The component does not
-currently expose a way to set custom HTTP request headers, so they cannot be configured today. They
-are optional and do not affect chat completions.
-====
-
-=== Embedding Models by Provider
-
-[cols="1,2,1"]
-|===
-| Provider | Recommended Model | Dimensions
-
-| OpenAI | `text-embedding-3-small` | 1536 (reducible to 256, 512, 1024)
-| OpenAI | `text-embedding-3-large` | 3072 (reducible)
-| Ollama | `nomic-embed-text` | 768
-| Ollama | `mxbai-embed-large` | 1024
-| Mistral | `mistral-embed` | 1024
-|===
-
-.Example using Ollama for local embeddings:
-[source,yaml]
-----
-- to:
-    uri: openai:embeddings
-    parameters:
-      baseUrl: http://localhost:11434/v1
-      embeddingModel: nomic-embed-text
-----
-
-== Embeddings Operation
-
-The `embeddings` operation generates vector embeddings from text, which can be used for semantic search, similarity comparison, and RAG (Retrieval-Augmented Generation) applications.
-
-=== Basic Embedding
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:embed")
-    .setBody(constant("What is Apache Camel?"))
-    .to("openai:embeddings?embeddingModel=nomic-embed-text")
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:embed
-      steps:
-        - to:
-            uri: openai:embeddings
-            parameters:
-              embeddingModel: nomic-embed-text
-----
-====
-
-The response body is the embedding vector data:
-
-* Single input: `List<Float>` (a single embedding vector)
-* Batch input: `List<List<Float>>` (one embedding vector per input string)
-
-Additional metadata (model, token usage, vector size, count) is exposed via headers (see `OpenAIConstants`).
-
-=== Batch Embedding
-
-You can embed multiple texts in a single request by passing a `List<String>`:
-
-._Java-only: uses `List.of()` for batch input_
-[source,java]
-----
-from("direct:batch-embed")
-    .setBody(constant(List.of("First text", "Second text", "Third text")))
-    .to("openai:embeddings?embeddingModel=nomic-embed-text")
-    .log("Generated ${header.CamelOpenAIEmbeddingCount} embeddings");
-----
-
-=== Direct Vector Database Integration
-
-For single-input requests, the component returns a raw `List<Float>` embedding vector, enabling direct chaining to vector database components.
-
-==== PostgreSQL + pgvector (Recommended)
-
-Using the xref:pgvector-component.adoc[PGVector] component:
-
-[source,yaml]
-----
-# Index documents in PostgreSQL with pgvector
-- route:
-    from:
-      uri: direct:index
-      steps:
-        - setVariable:
-            name: text
-            expression:
-              simple:
-                expression: "${body}"
-        - to:
-            uri: openai:embeddings
-            parameters:
-              embeddingModel: nomic-embed-text
-        - setHeader:
-            name: CamelPgVectorAction
-            constant: UPSERT
-        - setHeader:
-            name: CamelPgVectorTextContent
-            expression:
-              simple:
-                expression: "${variable.text}"
-        - to:
-            uri: pgvector:documents
-
-# Similarity search
-- route:
-    from:
-      uri: direct:search
-      steps:
-        - to:
-            uri: openai:embeddings
-            parameters:
-              embeddingModel: nomic-embed-text
-        - setHeader:
-            name: CamelPgVectorAction
-            constant: SIMILARITY_SEARCH
-        - setHeader:
-            name: CamelPgVectorQueryTopK
-            constant: 5
-        - to:
-            uri: pgvector:documents
-----
-
-The pgvector component handles table creation, HNSW indexing, upsert with conflict resolution, and similarity search with configurable distance types (cosine, euclidean, inner product). See the xref:pgvector-component.adoc[PGVector component documentation] for details.
-
-For custom table schemas, complex queries (joins, CTEs), or integration with existing PostgreSQL tables, you can use `camel-sql` directly with the pgvector extension:
-
-[source,yaml]
-----
-- to:
-    uri: sql:INSERT INTO documents (content, embedding) VALUES (:#text, :#embedding::vector)
-----
-
-==== Alternative: Dedicated Vector Databases
-
-For specialized vector workloads, you can also use `camel-qdrant`, `camel-weaviate`, `camel-milvus`, or `camel-pinecone`:
-
-=== Similarity Calculation
-
-The component can automatically calculate cosine similarity when a reference embedding is provided:
-
-._Java-only: uses `List<Float>` variable for reference embedding_
-[source,java]
-----
-List<Float> referenceEmbedding = /* previously computed embedding */;
-
-from("direct:compare")
-    .setBody(constant("New text to compare"))
-    .setHeader("CamelOpenAIReferenceEmbedding", constant(referenceEmbedding))
-    .to("openai:embeddings?embeddingModel=nomic-embed-text")
-    .log("Similarity score: ${header.CamelOpenAISimilarityScore}");
-----
-
-You can also use `SimilarityUtils` directly for manual calculations:
-
-._Java-only: `SimilarityUtils` API for vector math_
-[source,java]
-----
-import org.apache.camel.component.openai.SimilarityUtils;
-
-double similarity = SimilarityUtils.cosineSimilarity(embedding1, embedding2);
-double distance = SimilarityUtils.euclideanDistance(embedding1, embedding2);
-List<Float> normalized = SimilarityUtils.normalize(embedding);
-----
-
-=== Embeddings Output Headers
-
-The following headers are set after an embeddings request:
-
-[cols="1,1,3"]
-|===
-| Header | Type | Description
-
-| `CamelOpenAIEmbeddingResponseModel` | String | The model used for embedding
-| `CamelOpenAIEmbeddingCount` | Integer | Number of embeddings returned
-| `CamelOpenAIEmbeddingVectorSize` | Integer | Dimension of each embedding vector
-| `CamelOpenAIPromptTokens` | Integer | Tokens used in the input
-| `CamelOpenAITotalTokens` | Integer | Total tokens used
-| `CamelOpenAIOriginalText` | String/List | Original input text(s)
-| `CamelOpenAISimilarityScore` | Double | Cosine similarity (if reference embedding provided)
-|===
-
-== Audio Transcription Operation
-
-The `audio-transcription` operation transcribes audio files to text using OpenAI's speech-to-text models (Whisper, GPT-4o Transcribe).
-
-=== Basic Audio Transcription
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("file:audio?noop=true")
-    .to("openai:audio-transcription?audioModel=whisper-1")
-    .log("Transcription: ${body}");
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:transcribe
-      steps:
-        - to:
-            uri: openai:audio-transcription
-            parameters:
-              audioModel: whisper-1
-        - log:
-            message: "Transcription: ${body}"
-----
-====
-
-=== Input Handling
-
-The audio transcription operation accepts the following types in the message body:
-
-* `java.io.File` - Audio file reference
-* `java.nio.file.Path` - Path to an audio file
-* `java.io.InputStream` - Audio data stream
-* `byte[]` - Raw audio bytes
-
-Supported audio formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
-
-=== Audio Transcription Parameters
-
-[cols="1,1,1,3"]
-|===
-| Parameter | Type | Default | Description
-
-| `audioModel` | String | | The model to use (e.g., `whisper-1`, `gpt-4o-transcribe`). Required.
-| `audioLanguage` | String | | Input audio language in ISO-639-1 format (e.g., `en`). Improves accuracy.
-| `audioPrompt` | String | | Optional text to guide the model's style or continue a previous segment.
-| `audioResponseFormat` | String | `json` | Output format: `json`, `text`, `srt`, `verbose_json`, `vtt`.
-| `audioTemperature` | Double | | Sampling temperature (0.0 to 1.0).
-| `audioTimestampGranularities` | String | | Comma-separated: `word`, `segment`, or `word,segment`. Only with `verbose_json`.
-|===
-
-=== Audio Transcription Output Headers
-
-[cols="1,1,3"]
-|===
-| Header | Type | Description
-
-| `CamelOpenAIAudioDuration` | Double | Duration of the audio in seconds (verbose_json only)
-| `CamelOpenAIAudioDetectedLanguage` | String | Language detected in the audio (verbose_json only)
-|===
-
-=== Audio Models by Provider
-
-[cols="1,2,3"]
-|===
-| Provider | Model | Description
-
-| OpenAI | `whisper-1` | General-purpose speech recognition
-| OpenAI | `gpt-4o-transcribe` | High-accuracy transcription based on GPT-4o
-| OpenAI | `gpt-4o-mini-transcribe` | Lighter-weight GPT-4o variant
-|===
-
-=== Local Audio Transcription Servers
-
-The audio transcription operation works with any OpenAI-compatible server that implements the `POST /v1/audio/transcriptions` endpoint. It has been tested with:
-
-* https://github.com/ml-explore/mlx-audio[MLX Audio] — `python3 -m mlx_audio.server --host 127.0.0.1 --port 8003`
-
-.Example using MLX Audio for local transcription:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:transcribe")
-    .to("openai:audio-transcription?audioModel=mlx-community/whisper-large-v3-turbo"
-        + "&baseUrl=http://localhost:8003/v1");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:transcribe"/>
-  <to uri="openai:audio-transcription?audioModel=mlx-community/whisper-large-v3-turbo&amp;baseUrl=http://localhost:8003/v1"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:transcribe
-      steps:
-        - to:
-            uri: openai:audio-transcription
-            parameters:
-              audioModel: mlx-community/whisper-large-v3-turbo
-              baseUrl: http://localhost:8003/v1
-----
-====
-
-[NOTE]
-====
-Some local servers require the model parameter to be a path (e.g., `./models/granite-speech-4.1-2b-8bit`). Refer to your server's documentation for the expected model identifier format.
-====
-
-== MCP Tool Calling (Agentic Loop)
-
-The component supports automatic tool calling via the https://modelcontextprotocol.io[Model Context Protocol (MCP)]. When MCP servers are configured, the component acts as an MCP client: it lists available tools, converts them to OpenAI function-calling format, and runs an agentic loop — the model requests tool calls, the component executes them via MCP, feeds results back, and repeats until the model produces a final text answer.
-
-=== MCP Server Configuration
-
-MCP servers are configured inline on the endpoint URI using the `mcpServer.` prefix pattern. Each server is identified by a name, with sub-properties for transport type, command/URL, and arguments.
-
-==== Streamable HTTP Transport
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("openai:chat-completion?model=gpt-4"
-        + "&mcpServer.api.transportType=streamableHttp"
-        + "&mcpServer.api.url=http://localhost:9090/mcp");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="openai:chat-completion?model=gpt-4&amp;mcpServer.api.transportType=streamableHttp&amp;mcpServer.api.url=http://localhost:9090/mcp"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              model: gpt-4
-              mcpServer.api.transportType: streamableHttp
-              mcpServer.api.url: http://localhost:9090/mcp
-----
-====
-
-==== SSE Transport (Deprecated)
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("openai:chat-completion?model=gpt-4"
-        + "&mcpServer.weather.transportType=sse"
-        + "&mcpServer.weather.url=http://localhost:8080");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="openai:chat-completion?model=gpt-4&amp;mcpServer.weather.transportType=sse&amp;mcpServer.weather.url=http://localhost:8080"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              model: gpt-4
-              mcpServer.weather.transportType: sse
-              mcpServer.weather.url: http://localhost:8080
-----
-====
-
-==== Stdio Transport
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("openai:chat-completion?model=gpt-4"
-        + "&mcpServer.fs.transportType=stdio"
-        + "&mcpServer.fs.command=npx"
-        + "&mcpServer.fs.args=-y,@modelcontextprotocol/server-filesystem,/tmp");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="openai:chat-completion?model=gpt-4&amp;mcpServer.fs.transportType=stdio&amp;mcpServer.fs.command=npx&amp;mcpServer.fs.args=-y,@modelcontextprotocol/server-filesystem,/tmp"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              model: gpt-4
-              mcpServer.fs.transportType: stdio
-              mcpServer.fs.command: npx
-              mcpServer.fs.args: "-y,@modelcontextprotocol/server-filesystem,/tmp"
-----
-====
-
-==== Multiple MCP Servers
-
-Multiple servers can be configured on the same endpoint. Tools from all servers are merged and made available to the model:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("openai:chat-completion?model=gpt-4"
-        + "&mcpServer.fs.transportType=stdio"
-        + "&mcpServer.fs.command=npx"
-        + "&mcpServer.fs.args=-y,@modelcontextprotocol/server-filesystem,/tmp"
-        + "&mcpServer.weather.transportType=sse"
-        + "&mcpServer.weather.url=http://localhost:8080");
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              model: gpt-4
-              mcpServer.fs.transportType: stdio
-              mcpServer.fs.command: npx
-              mcpServer.fs.args: "-y,@modelcontextprotocol/server-filesystem,/tmp"
-              mcpServer.weather.transportType: sse
-              mcpServer.weather.url: http://localhost:8080
-        - log:
-            message: "${body}"
-----
-====
-
-=== Agentic Loop Behavior
-
-When the model responds with tool calls, the component automatically:
-
-1. Executes each tool call via the corresponding MCP server
-2. Sends the tool results back to the model
-3. Repeats until the model produces a final text response
-
-The `maxToolIterations` option (default: 50) prevents infinite loops. If exceeded, an `IllegalStateException` is thrown.
-
-Set `autoToolExecution=false` to disable the agentic loop and receive raw tool calls in the message body instead:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("openai:chat-completion?model=gpt-4"
-        + "&autoToolExecution=false"
-        + "&mcpServer.api.transportType=streamableHttp"
-        + "&mcpServer.api.url=http://localhost:9090/mcp")
-    .log("Tool calls: ${body}"); // body is the raw tool calls list
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="openai:chat-completion?model=gpt-4&amp;autoToolExecution=false&amp;mcpServer.api.transportType=streamableHttp&amp;mcpServer.api.url=http://localhost:9090/mcp"/>
-  <log message="Tool calls: ${body}"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              model: gpt-4
-              autoToolExecution: false
-              mcpServer.api.transportType: streamableHttp
-              mcpServer.api.url: http://localhost:9090/mcp
-        - log:
-            message: "Tool calls: ${body}"
-----
-====
-
-=== Manual Tool Loop with `tool-execution` Operation
-
-When `autoToolExecution=false`, you can implement your own tool loop using the `openai:tool-execution` operation and Camel's `loopDoWhile` EIP. This gives you full control to add logging, filtering, retry logic, or custom routing between tool calls — without writing any Java code.
-
-The `tool-execution` operation:
-
-* Reads the stored `ChatCompletion` response (requires `storeFullResponse=true` on the chat-completion call)
-* Extracts tool calls and executes them via MCP
-* Rebuilds the conversation history with the proper message chain
-* Clears the body for the next chat-completion call
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    // Save the original prompt for the tool-execution operation
-    .setProperty("originalPrompt", body())
-
-    // Initial call: tools are listed but not auto-executed
-    .to("openai:chat-completion?autoToolExecution=false"
-        + "&conversationMemory=true&storeFullResponse=true"
-        + "&mcpServer.api.transportType=streamableHttp"
-        + "&mcpServer.api.url=http://localhost:9090/mcp")
-
-    // Loop while the model requests tool calls
-    .loopDoWhile(header("CamelOpenAIFinishReason").isEqualTo("tool_calls"))
-        // Execute tool calls via MCP
-        .to("openai:tool-execution"
-            + "?mcpServer.api.transportType=streamableHttp"
-            + "&mcpServer.api.url=http://localhost:9090/mcp")
-        // Send updated conversation back to the model
-        .to("openai:chat-completion?autoToolExecution=false"
-            + "&conversationMemory=true&storeFullResponse=true"
-            + "&mcpServer.api.transportType=streamableHttp"
-            + "&mcpServer.api.url=http://localhost:9090/mcp")
-    .end()
-
-    .log("Final answer: ${body}");
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - setProperty:
-            name: originalPrompt
-            expression:
-              simple:
-                expression: "${body}"
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              autoToolExecution: false
-              conversationMemory: true
-              storeFullResponse: true
-              mcpServer.api.transportType: streamableHttp
-              mcpServer.api.url: http://localhost:9090/mcp
-        - loopDoWhile:
-            expression:
-              simple:
-                expression: "${header.CamelOpenAIFinishReason} == 'tool_calls'"
-            steps:
-              - to:
-                  uri: openai:tool-execution
-                  parameters:
-                    mcpServer.api.transportType: streamableHttp
-                    mcpServer.api.url: http://localhost:9090/mcp
-              - to:
-                  uri: openai:chat-completion
-                  parameters:
-                    autoToolExecution: false
-                    conversationMemory: true
-                    storeFullResponse: true
-                    mcpServer.api.transportType: streamableHttp
-                    mcpServer.api.url: http://localhost:9090/mcp
-        - log:
-            message: "Final answer: ${body}"
-----
-====
-
-NOTE: The `tool-execution` operation requires the `originalPrompt` exchange property (set via `setProperty` before the first call) and the `CamelOpenAIResponse` exchange property (set by `storeFullResponse=true`).
-
-=== returnDirect
-
-MCP tools can declare `returnDirect=true` in their annotations. When *all* tools invoked in a single batch carry this flag, the component short-circuits: it returns the tool result directly as the exchange body without sending it back to the model for further processing.
-
-This is useful for tools whose output is the definitive answer (e.g., a database lookup) and does not need LLM interpretation.
-
-The `CamelOpenAIMcpReturnDirect` header is set to `true` when this occurs, so downstream processors can distinguish tool-direct responses from LLM-generated ones.
-
-NOTE: Tool execution errors always bypass `returnDirect` — errors are sent back to the model for graceful handling.
-
-=== MCP Tool Call Headers
-
-The following headers are set after the agentic loop completes:
-
-[cols="1,1,3"]
-|===
-| Header | Type | Description
-
-| `CamelOpenAIToolIterations` | Integer | Number of tool call iterations performed
-| `CamelOpenAIMcpToolCalls` | List<String> | Ordered list of tool names called during the loop
-| `CamelOpenAIMcpReturnDirect` | Boolean | `true` if the response came directly from a tool with `returnDirect`
-|===
-
-=== Conversation Memory with MCP Tools
-
-When `conversationMemory=true`, the full tool call chain is stored in the conversation history exchange property (`CamelOpenAIConversationHistory`). This includes:
-
-- Assistant messages containing tool call requests
-- Tool result messages with execution outputs
-- The final assistant text response
-
-This enables multi-turn agentic conversations where the model can reference previous tool interactions across exchanges.
-
-==== Multi-Turn Example
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("openai:chat-completion?conversationMemory=true"
-        + "&mcpServer.api.transportType=streamableHttp"
-        + "&mcpServer.api.url=http://localhost:9090/mcp")
-    .to("mock:response");
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              conversationMemory: true
-              mcpServer.api.transportType: streamableHttp
-              mcpServer.api.url: http://localhost:9090/mcp
-        - log:
-            message: "${body}"
-----
-====
-
-With this route, a multi-turn conversation works as follows:
-
-._Java-only: ProducerTemplate test API with conversation history management_
-[source,java]
-----
-// Turn 1: the model calls the "add" tool and returns the result
-Exchange turn1 = template.request("direct:chat", e ->
-    e.getIn().setBody("Use the add tool to add 15 and 27"));
-// Response: "The result of adding 15 and 27 is 42."
-
-// Turn 2: carry forward the conversation history
-List<?> history = turn1.getProperty("CamelOpenAIConversationHistory", List.class);
-Exchange turn2 = template.request("direct:chat", e -> {
-    e.getIn().setBody("What numbers did you just add?");
-    e.setProperty("CamelOpenAIConversationHistory", history);
-});
-// Response: "I added 15 and 27." — the model remembers the tool interaction
-----
-
-The conversation history includes the full tool call chain from turn 1 (the assistant's tool call request, the tool result, and the final answer), so in turn 2 the model has complete context of what happened — including which tools were called and what they returned.
-
-NOTE: When `systemMessage` is set and `conversationMemory` is enabled, the conversation history is reset. This allows starting fresh conversations within the same route.
-
-=== MCP Protocol Version
-
-When using the Streamable HTTP transport, the component advertises MCP protocol versions during initialization. By default, the SDK's built-in versions are used. If your MCP server does not support the latest protocol version, you can restrict the advertised versions:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("openai:chat-completion?model=gpt-4"
-        + "&mcpServer.api.transportType=streamableHttp"
-        + "&mcpServer.api.url=http://localhost:9090/mcp"
-        + "&mcpProtocolVersions=2024-11-05,2025-03-26,2025-06-18");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="openai:chat-completion?model=gpt-4&amp;mcpServer.api.transportType=streamableHttp&amp;mcpServer.api.url=http://localhost:9090/mcp&amp;mcpProtocolVersions=2024-11-05,2025-03-26,2025-06-18"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              model: gpt-4
-              mcpServer.api.transportType: streamableHttp
-              mcpServer.api.url: http://localhost:9090/mcp
-              mcpProtocolVersions: "2024-11-05,2025-03-26,2025-06-18"
-----
-====
-
-=== MCP Connection Recovery
-
-When `mcpReconnect=true` (the default), the component automatically recovers from MCP server connection failures. If a tool call fails with a transport error, the component:
-
-1. Closes the failed connection
-2. Creates a new transport and client using the original server configuration
-3. Re-initializes and re-lists available tools
-4. Retries the tool call once on the new connection
-
-This handles scenarios where an MCP server restarts, a network connection drops, or a stdio subprocess dies. If reconnection fails, the original transport error is propagated.
-
-Set `mcpReconnect=false` to disable automatic recovery:
-
-[tabs]
-====
-Java::
-+
-[source,java]
-----
-from("direct:chat")
-    .to("openai:chat-completion?model=gpt-4"
-        + "&mcpReconnect=false"
-        + "&mcpServer.api.transportType=streamableHttp"
-        + "&mcpServer.api.url=http://localhost:9090/mcp");
-----
-
-XML::
-+
-[source,xml]
-----
-<route>
-  <from uri="direct:chat"/>
-  <to uri="openai:chat-completion?model=gpt-4&amp;mcpReconnect=false&amp;mcpServer.api.transportType=streamableHttp&amp;mcpServer.api.url=http://localhost:9090/mcp"/>
-</route>
-----
-
-YAML::
-+
-[source,yaml]
-----
-- route:
-    from:
-      uri: direct:chat
-      steps:
-        - to:
-            uri: openai:chat-completion
-            parameters:
-              model: gpt-4
-              mcpReconnect: false
-              mcpServer.api.transportType: streamableHttp
-              mcpServer.api.url: http://localhost:9090/mcp
-----
-====
-
-=== Error Handling in the Agentic Loop
-
-[cols="1,3"]
-|===
-| Scenario | Behavior
-
-| MCP client initialization failure | Route fails to start (`RuntimeException` during `doStart()`)
-| Tool execution throws an exception | Error is caught, logged as WARN, and sent as tool result text to the model
-| MCP transport error (`mcpReconnect=true`) | Automatic reconnection and retry (once). If retry fails, error is sent to the model
-| MCP `CallToolResult.isError()` is true | Error content is sent as tool result text to the model
-| Tool name not found in any server | `IllegalStateException` is thrown
-| Max iterations exceeded | `IllegalStateException` is thrown with the tool call log
-| Streaming + MCP tools with autoToolExecution | Falls back to non-streaming (logged as INFO)
-|===
+* xref:others:openai-mcp.adoc[MCP Tool Calling] - Model Context Protocol server configuration, agentic loop, streaming, and connection recovery
+* xref:others:openai-providers.adoc[OpenAI-Compatible Providers] - Using Ollama, LM Studio, vLLM, and OpenRouter as alternative backends
+* xref:others:openai-operations.adoc[Embeddings and Audio Operations] - Text embeddings, vector database integration, and audio transcription
 
 == Error Handling
 
diff --git a/components/camel-ai/camel-openai/src/main/docs/openai-mcp.adoc b/components/camel-ai/camel-openai/src/main/docs/openai-mcp.adoc
new file mode 100644
index 000000000000..c5ee338255da
--- /dev/null
+++ b/components/camel-ai/camel-openai/src/main/docs/openai-mcp.adoc
@@ -0,0 +1,528 @@
+= OpenAI - MCP Tool Calling
+:tabs-sync-option:
+
+xref:ROOT:openai-component.adoc[Back to OpenAI Component]
+
+== MCP Tool Calling (Agentic Loop)
+
+The component supports automatic tool calling via the https://modelcontextprotocol.io[Model Context Protocol (MCP)]. When MCP servers are configured, the component acts as an MCP client: it lists available tools, converts them to OpenAI function-calling format, and runs an agentic loop — the model requests tool calls, the component executes them via MCP, feeds results back, and repeats until the model produces a final text answer.
+
+=== MCP Server Configuration
+
+MCP servers are configured inline on the endpoint URI using the `mcpServer.` prefix pattern. Each server is identified by a name, with sub-properties for transport type, command/URL, and arguments.
+
+==== Streamable HTTP Transport
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .to("openai:chat-completion?model=gpt-4"
+        + "&mcpServer.api.transportType=streamableHttp"
+        + "&mcpServer.api.url=http://localhost:9090/mcp");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:chat"/>
+  <to uri="openai:chat-completion?model=gpt-4&amp;mcpServer.api.transportType=streamableHttp&amp;mcpServer.api.url=http://localhost:9090/mcp"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: openai:chat-completion
+            parameters:
+              model: gpt-4
+              mcpServer.api.transportType: streamableHttp
+              mcpServer.api.url: http://localhost:9090/mcp
+----
+====
+
+==== SSE Transport (Deprecated)
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .to("openai:chat-completion?model=gpt-4"
+        + "&mcpServer.weather.transportType=sse"
+        + "&mcpServer.weather.url=http://localhost:8080");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:chat"/>
+  <to uri="openai:chat-completion?model=gpt-4&amp;mcpServer.weather.transportType=sse&amp;mcpServer.weather.url=http://localhost:8080"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: openai:chat-completion
+            parameters:
+              model: gpt-4
+              mcpServer.weather.transportType: sse
+              mcpServer.weather.url: http://localhost:8080
+----
+====
+
+==== Stdio Transport
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .to("openai:chat-completion?model=gpt-4"
+        + "&mcpServer.fs.transportType=stdio"
+        + "&mcpServer.fs.command=npx"
+        + "&mcpServer.fs.args=-y,@modelcontextprotocol/server-filesystem,/tmp");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:chat"/>
+  <to uri="openai:chat-completion?model=gpt-4&amp;mcpServer.fs.transportType=stdio&amp;mcpServer.fs.command=npx&amp;mcpServer.fs.args=-y,@modelcontextprotocol/server-filesystem,/tmp"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: openai:chat-completion
+            parameters:
+              model: gpt-4
+              mcpServer.fs.transportType: stdio
+              mcpServer.fs.command: npx
+              mcpServer.fs.args: "-y,@modelcontextprotocol/server-filesystem,/tmp"
+----
+====
+
+==== Multiple MCP Servers
+
+Multiple servers can be configured on the same endpoint. Tools from all servers are merged and made available to the model:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .to("openai:chat-completion?model=gpt-4"
+        + "&mcpServer.fs.transportType=stdio"
+        + "&mcpServer.fs.command=npx"
+        + "&mcpServer.fs.args=-y,@modelcontextprotocol/server-filesystem,/tmp"
+        + "&mcpServer.weather.transportType=sse"
+        + "&mcpServer.weather.url=http://localhost:8080");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: openai:chat-completion
+            parameters:
+              model: gpt-4
+              mcpServer.fs.transportType: stdio
+              mcpServer.fs.command: npx
+              mcpServer.fs.args: "-y,@modelcontextprotocol/server-filesystem,/tmp"
+              mcpServer.weather.transportType: sse
+              mcpServer.weather.url: http://localhost:8080
+        - log:
+            message: "${body}"
+----
+====
+
+=== Agentic Loop Behavior
+
+When the model responds with tool calls, the component automatically:
+
+1. Executes each tool call via the corresponding MCP server
+2. Sends the tool results back to the model
+3. Repeats until the model produces a final text response
+
+The `maxToolIterations` option (default: 50) prevents infinite loops. If exceeded, an `IllegalStateException` is thrown.
+
+Set `autoToolExecution=false` to disable the agentic loop and receive raw tool calls in the message body instead:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .to("openai:chat-completion?model=gpt-4"
+        + "&autoToolExecution=false"
+        + "&mcpServer.api.transportType=streamableHttp"
+        + "&mcpServer.api.url=http://localhost:9090/mcp")
+    .log("Tool calls: ${body}"); // body is the raw tool calls list
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:chat"/>
+  <to uri="openai:chat-completion?model=gpt-4&amp;autoToolExecution=false&amp;mcpServer.api.transportType=streamableHttp&amp;mcpServer.api.url=http://localhost:9090/mcp"/>
+  <log message="Tool calls: ${body}"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: openai:chat-completion
+            parameters:
+              model: gpt-4
+              autoToolExecution: false
+              mcpServer.api.transportType: streamableHttp
+              mcpServer.api.url: http://localhost:9090/mcp
+        - log:
+            message: "Tool calls: ${body}"
+----
+====
+
+=== Manual Tool Loop with `tool-execution` Operation
+
+When `autoToolExecution=false`, you can implement your own tool loop using the `openai:tool-execution` operation and Camel's `loopDoWhile` EIP. This gives you full control to add logging, filtering, retry logic, or custom routing between tool calls — without writing any Java code.
+
+The `tool-execution` operation:
+
+* Reads the stored `ChatCompletion` response (requires `storeFullResponse=true` on the chat-completion call)
+* Extracts tool calls and executes them via MCP
+* Rebuilds the conversation history with the proper message chain
+* Clears the body for the next chat-completion call
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    // Save the original prompt for the tool-execution operation
+    .setProperty("originalPrompt", body())
+
+    // Initial call: tools are listed but not auto-executed
+    .to("openai:chat-completion?autoToolExecution=false"
+        + "&conversationMemory=true&storeFullResponse=true"
+        + "&mcpServer.api.transportType=streamableHttp"
+        + "&mcpServer.api.url=http://localhost:9090/mcp")
+
+    // Loop while the model requests tool calls
+    .loopDoWhile(header("CamelOpenAIFinishReason").isEqualTo("tool_calls"))
+        // Execute tool calls via MCP
+        .to("openai:tool-execution"
+            + "?mcpServer.api.transportType=streamableHttp"
+            + "&mcpServer.api.url=http://localhost:9090/mcp")
+        // Send updated conversation back to the model
+        .to("openai:chat-completion?autoToolExecution=false"
+            + "&conversationMemory=true&storeFullResponse=true"
+            + "&mcpServer.api.transportType=streamableHttp"
+            + "&mcpServer.api.url=http://localhost:9090/mcp")
+    .end()
+
+    .log("Final answer: ${body}");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - setProperty:
+            name: originalPrompt
+            expression:
+              simple:
+                expression: "${body}"
+        - to:
+            uri: openai:chat-completion
+            parameters:
+              autoToolExecution: false
+              conversationMemory: true
+              storeFullResponse: true
+              mcpServer.api.transportType: streamableHttp
+              mcpServer.api.url: http://localhost:9090/mcp
+        - loopDoWhile:
+            expression:
+              simple:
+                expression: "${header.CamelOpenAIFinishReason} == 'tool_calls'"
+            steps:
+              - to:
+                  uri: openai:tool-execution
+                  parameters:
+                    mcpServer.api.transportType: streamableHttp
+                    mcpServer.api.url: http://localhost:9090/mcp
+              - to:
+                  uri: openai:chat-completion
+                  parameters:
+                    autoToolExecution: false
+                    conversationMemory: true
+                    storeFullResponse: true
+                    mcpServer.api.transportType: streamableHttp
+                    mcpServer.api.url: http://localhost:9090/mcp
+        - log:
+            message: "Final answer: ${body}"
+----
+====
+
+NOTE: The `tool-execution` operation requires the `originalPrompt` exchange property (set via `setProperty` before the first call) and the `CamelOpenAIResponse` exchange property (set by `storeFullResponse=true`).
+
+=== returnDirect
+
+MCP tools can declare `returnDirect=true` in their annotations. When *all* tools invoked in a single batch carry this flag, the component short-circuits: it returns the tool result directly as the exchange body without sending it back to the model for further processing.
+
+This is useful for tools whose output is the definitive answer (e.g., a database lookup) and does not need LLM interpretation.
+
+The `CamelOpenAIMcpReturnDirect` header is set to `true` when this occurs, so downstream processors can distinguish tool-direct responses from LLM-generated ones.
+
+NOTE: Tool execution errors always bypass `returnDirect` — errors are sent back to the model for graceful handling.
+
+=== MCP Tool Call Headers
+
+The following headers are set after the agentic loop completes:
+
+[cols="1,1,3"]
+|===
+| Header | Type | Description
+
+| `CamelOpenAIToolIterations` | Integer | Number of tool call iterations performed
+| `CamelOpenAIMcpToolCalls` | List<String> | Ordered list of tool names called during the loop
+| `CamelOpenAIMcpReturnDirect` | Boolean | `true` if the response came directly from a tool with `returnDirect`
+|===
+
+=== Conversation Memory with MCP Tools
+
+When `conversationMemory=true`, the full tool call chain is stored in the conversation history exchange property (`CamelOpenAIConversationHistory`). This includes:
+
+- Assistant messages containing tool call requests
+- Tool result messages with execution outputs
+- The final assistant text response
+
+This enables multi-turn agentic conversations where the model can reference previous tool interactions across exchanges.
+
+==== Multi-Turn Example
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .to("openai:chat-completion?conversationMemory=true"
+        + "&mcpServer.api.transportType=streamableHttp"
+        + "&mcpServer.api.url=http://localhost:9090/mcp")
+    .to("mock:response");
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: openai:chat-completion
+            parameters:
+              conversationMemory: true
+              mcpServer.api.transportType: streamableHttp
+              mcpServer.api.url: http://localhost:9090/mcp
+        - log:
+            message: "${body}"
+----
+====
+
+With this route, a multi-turn conversation works as follows:
+
+._Java-only: ProducerTemplate test API with conversation history management_
+[source,java]
+----
+// Turn 1: the model calls the "add" tool and returns the result
+Exchange turn1 = template.request("direct:chat", e ->
+    e.getIn().setBody("Use the add tool to add 15 and 27"));
+// Response: "The result of adding 15 and 27 is 42."
+
+// Turn 2: carry forward the conversation history
+List<?> history = turn1.getProperty("CamelOpenAIConversationHistory", List.class);
+Exchange turn2 = template.request("direct:chat", e -> {
+    e.getIn().setBody("What numbers did you just add?");
+    e.setProperty("CamelOpenAIConversationHistory", history);
+});
+// Response: "I added 15 and 27." — the model remembers the tool interaction
+----
+
+The conversation history includes the full tool call chain from turn 1 (the assistant's tool call request, the tool result, and the final answer), so in turn 2 the model has complete context of what happened — including which tools were called and what they returned.
+
+NOTE: When `systemMessage` is set and `conversationMemory` is enabled, the conversation history is reset. This allows starting fresh conversations within the same route.
+
+=== MCP Protocol Version
+
+When using the Streamable HTTP transport, the component advertises MCP protocol versions during initialization. By default, the SDK's built-in versions are used. If your MCP server does not support the latest protocol version, you can restrict the advertised versions:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .to("openai:chat-completion?model=gpt-4"
+        + "&mcpServer.api.transportType=streamableHttp"
+        + "&mcpServer.api.url=http://localhost:9090/mcp"
+        + "&mcpProtocolVersions=2024-11-05,2025-03-26,2025-06-18");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:chat"/>
+  <to uri="openai:chat-completion?model=gpt-4&amp;mcpServer.api.transportType=streamableHttp&amp;mcpServer.api.url=http://localhost:9090/mcp&amp;mcpProtocolVersions=2024-11-05,2025-03-26,2025-06-18"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: openai:chat-completion
+            parameters:
+              model: gpt-4
+              mcpServer.api.transportType: streamableHttp
+              mcpServer.api.url: http://localhost:9090/mcp
+              mcpProtocolVersions: "2024-11-05,2025-03-26,2025-06-18"
+----
+====
+
+=== MCP Connection Recovery
+
+When `mcpReconnect=true` (the default), the component automatically recovers from MCP server connection failures. If a tool call fails with a transport error, the component:
+
+1. Closes the failed connection
+2. Creates a new transport and client using the original server configuration
+3. Re-initializes and re-lists available tools
+4. Retries the tool call once on the new connection
+
+This handles scenarios where an MCP server restarts, a network connection drops, or a stdio subprocess dies. If reconnection fails, the original transport error is propagated.
+
+Set `mcpReconnect=false` to disable automatic recovery:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:chat")
+    .to("openai:chat-completion?model=gpt-4"
+        + "&mcpReconnect=false"
+        + "&mcpServer.api.transportType=streamableHttp"
+        + "&mcpServer.api.url=http://localhost:9090/mcp");
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+  <from uri="direct:chat"/>
+  <to uri="openai:chat-completion?model=gpt-4&amp;mcpReconnect=false&amp;mcpServer.api.transportType=streamableHttp&amp;mcpServer.api.url=http://localhost:9090/mcp"/>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:chat
+      steps:
+        - to:
+            uri: openai:chat-completion
+            parameters:
+              model: gpt-4
+              mcpReconnect: false
+              mcpServer.api.transportType: streamableHttp
+              mcpServer.api.url: http://localhost:9090/mcp
+----
+====
+
+=== Error Handling in the Agentic Loop
+
+[cols="1,3"]
+|===
+| Scenario | Behavior
+
+| MCP client initialization failure | Route fails to start (`RuntimeException` during `doStart()`)
+| Tool execution throws an exception | Error is caught, logged as WARN, and sent as tool result text to the model
+| MCP transport error (`mcpReconnect=true`) | Automatic reconnection and retry (once). If retry fails, error is sent to the model
+| MCP `CallToolResult.isError()` is true | Error content is sent as tool result text to the model
+| Tool name not found in any server | `IllegalStateException` is thrown
+| Max iterations exceeded | `IllegalStateException` is thrown with the tool call log
+| Streaming + MCP tools with autoToolExecution | Falls back to non-streaming (logged as INFO)
+|===
diff --git a/components/camel-ai/camel-openai/src/main/docs/openai-operations.adoc b/components/camel-ai/camel-openai/src/main/docs/openai-operations.adoc
new file mode 100644
index 000000000000..632b44c8de63
--- /dev/null
+++ b/components/camel-ai/camel-openai/src/main/docs/openai-operations.adoc
@@ -0,0 +1,299 @@
+= OpenAI - Embeddings and Audio Operations
+:tabs-sync-option:
+
+xref:ROOT:openai-component.adoc[Back to OpenAI Component]
+
+== Embeddings Operation
+
+The `embeddings` operation generates vector embeddings from text, which can be used for semantic search, similarity comparison, and RAG (Retrieval-Augmented Generation) applications.
+
+=== Basic Embedding
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("direct:embed")
+    .setBody(constant("What is Apache Camel?"))
+    .to("openai:embeddings?embeddingModel=nomic-embed-text")
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:embed
+      steps:
+        - to:
+            uri: openai:embeddings
+            parameters:
+              embeddingModel: nomic-embed-text
+----
+====
+
+The response body is the embedding vector data:
+
+* Single input: `List<Float>` (a single embedding vector)
+* Batch input: `List<List<Float>>` (one embedding vector per input string)
+
+Additional metadata (model, token usage, vector size, count) is exposed via headers (see `OpenAIConstants`).
+
+=== Batch Embedding
+
+You can embed multiple texts in a single request by passing a `List<String>`:
+
+._Java-only: uses `List.of()` for batch input_
+[source,java]
+----
+from("direct:batch-embed")
+    .setBody(constant(List.of("First text", "Second text", "Third text")))
+    .to("openai:embeddings?embeddingModel=nomic-embed-text")
+    .log("Generated ${header.CamelOpenAIEmbeddingCount} embeddings");
+----
+
+=== Direct Vector Database Integration
+
+For single-input requests, the component returns a raw `List<Float>` embedding vector, enabling direct chaining to vector database components.
+
+==== PostgreSQL + pgvector (Recommended)
+
+Using the xref:ROOT:pgvector-component.adoc[PGVector] component:
+
+[source,yaml]
+----
... 5955 lines suppressed ...