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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public interface BeerMapper {

@Mapping(source = "style", target = "category")
@Mapping(source = "alcohol", target = "strength")
@Mapping(target = "kind", constant = "beer")
Beverage toBeverage(Beer beer);

}
2 changes: 1 addition & 1 deletion semantic-agent-routing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ limitations under the License.
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-typesafe-ai</artifactId>
<artifactId>camel-semantic-typesafe-ai</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# limitations under the License.

camel.main.name=trip-{{role}}
# TypeSafe AI semantic expert - registered as 'decisions' bean for use in evaluations
camel.beans.decisions=#class:org.apache.camel.component.typesafeai.TypeSafeAiSemanticAdapter
camel.main.shutdown-timeout=5
camel.server.enabled=true
camel.server.host=127.0.0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
type: org.apache.camel.example.routing.TripSupport

- semantic:
question:
evaluation:
specialist:
expert: decisions
type: choice
instructions: Which car rental specialist should handle the customer's request?
criteria:
Expand All @@ -28,18 +29,22 @@
cost: Rental prices, total cost, budget, fees or price comparison
general: Greetings, service information or other questions
needsReservation:
expert: decisions
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: decisions
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: decisions
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: decisions
type: boolean
instructions: >-
Does the drafted reply address every requested part within the named specialist's
Expand All @@ -51,6 +56,7 @@
uncertainty: 0.1
uncertaintyPolicy: non-match
complete:
expert: decisions
type: boolean
instructions: >-
Does the final reply address every part of the customer's original request,
Expand Down
Loading