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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions semantic-agent-routing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ limitations under the License.
<groupId>org.apache.camel</groupId>
<artifactId>camel-semantic</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-semantic-typesafe-ai</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-typesafe-ai</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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,
Expand Down
Loading