diff --git a/semantic-agent-routing/pom.xml b/semantic-agent-routing/pom.xml index 8b5200d64..31db1e966 100644 --- a/semantic-agent-routing/pom.xml +++ b/semantic-agent-routing/pom.xml @@ -69,6 +69,10 @@ limitations under the License. org.apache.camel camel-semantic + + org.apache.camel + camel-semantic-typesafe-ai + org.apache.camel camel-typesafe-ai diff --git a/semantic-agent-routing/src/main/resources/routes/coordinator.yaml b/semantic-agent-routing/src/main/resources/routes/coordinator.yaml index 1811007b0..6fedc1fa7 100644 --- a/semantic-agent-routing/src/main/resources/routes/coordinator.yaml +++ b/semantic-agent-routing/src/main/resources/routes/coordinator.yaml @@ -16,10 +16,13 @@ - beans: - name: tripSupport type: org.apache.camel.example.routing.TripSupport + - name: typesafe-ai + type: org.apache.camel.component.typesafeai.TypeSafeAiSemanticAdapter - semantic: - question: + evaluation: specialist: + expert: typesafe-ai type: choice instructions: Which car rental specialist should handle the customer's request? criteria: @@ -28,18 +31,22 @@ cost: Rental prices, total cost, budget, fees or price comparison general: Greetings, service information or other questions needsReservation: + expert: typesafe-ai type: boolean instructions: Does answering this customer request fully require input about booking details, reservation lookup, changes or cancellation? threshold: "{{routing.fan-out-threshold}}" needsWeather: + expert: typesafe-ai type: boolean instructions: Does answering this customer request fully require input about weather, rain, forecasts or driving conditions at the destination? threshold: "{{routing.fan-out-threshold}}" needsCost: + expert: typesafe-ai type: boolean instructions: Does answering this customer request fully require input about rental prices, total cost, budget or fees? threshold: "{{routing.fan-out-threshold}}" relevant: + expert: typesafe-ai type: boolean instructions: >- Does the drafted reply address every requested part within the named specialist's @@ -51,6 +58,7 @@ uncertainty: 0.1 uncertaintyPolicy: non-match complete: + expert: typesafe-ai type: boolean instructions: >- Does the final reply address every part of the customer's original request,