oscerd commented on code in PR #27714:
URL: https://github.com/apache/camel/pull/27714#discussion_r4246464535


##########
core/camel-api/src/main/java/org/apache/camel/ai/AiEvent.java:
##########
@@ -0,0 +1,110 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.ai;
+
+import org.apache.camel.spi.CamelEvent;
+import org.jspecify.annotations.Nullable;
+
+/**
+ * Common contract for events fired by Camel AI components (tool calls, 
agentic loops, ...).
+ * <p>
+ * An {@code AiEvent} is a {@link CamelEvent.ExchangeEvent} of {@link 
CamelEvent.Type#Ai}: it carries the exchange it
+ * relates to (so it can be correlated by route id or exchange id) and is 
typed {@code Ai} rather than {@code Custom},
+ * so an {@link org.apache.camel.spi.EventNotifier} can recognise AI activity 
— and route it to metrics, tracing or a
+ * GenAI-observability backend — by type and by these sub-interfaces, without 
depending on any AI component or doing an
+ * {@code instanceof} against each component's own event class.
+ * <p>
+ * Concrete event classes live in the AI components (they implement these 
interfaces); the only thing shared across
+ * components is this contract.
+ *
+ * @since 4.23

Review Comment:
   Fixed — `AiEvent` and the other new types are now `@since 4.24` (commit 
044b4b4c29c6). Confirmed they ship in 4.24.0, not 4.23.0.
   
   _Claude Code on behalf of oscerd_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to