Closed geoand closed 1 month ago
@cescoffier can you give this a try with the example you had in mind for the @ToolBox
use case?
@geoand I will try it tomorrow.
🙏
I'll fix the conflict if we decide we want this
@cescoffier can you have a look at this one?
@geoand Yes, I will try to use it on the demo we did last week.
🙏🏼
Works!
@UserMessage("""
Extract the policy number from the given claim.
Only return the policy number.
{text}
""")
String extractPolicyNumber(String text);
@UserMessage("""
Check if there is an existing claim related to the given claim.
Return the claim id, null if none.
The existing claim can be found by identifying the policy number from the given claim.
If no claim is found, return -1.
{text}
""")
@ToolBox(ClaimService.class)
Long findRelatedClaims(String text);
Thanks for checking!
I will add some documentation while also fixing the conflict
Done
This is done using the new
@ToolBox
annotation