-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce a way to configure tools per method of an AiService #613
Conversation
@cescoffier can you give this a try with the example you had in mind for the |
@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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation would be nice :-)
Thanks for checking! I will add some documentation while also fixing the conflict |
Done |
This is done using the new
@ToolBox
annotation