-
Notifications
You must be signed in to change notification settings - Fork 49
Added AgenticServices helper #835
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
base: main
Are you sure you want to change the base?
Conversation
2401aa7
to
61bd518
Compare
.outputName("story") | ||
.build()); | ||
spy( | ||
dev.langchain4j.agentic.AgenticServices.agentBuilder(CreativeWriter.class) |
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.
We can drop the FQCN
} | ||
} | ||
|
||
private static class AgentInvocationHandler implements InvocationHandler { |
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.
I think we already have something pretty similar on the agentic-langchain4j
module. Is it doable to share the same class?
21fa658
to
bfec4eb
Compare
if (model instanceof HasAgenticScope<?> hasAgenticScope && inputClass.isEmpty()) { | ||
return (T) hasAgenticScope.getAgenticScope(); | ||
} |
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.
You should not do this change here, but in as
(when inputclass is not empty) and asJavaObject
(when inputclass is empty) methods of AgenticModel
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.
This class should not be added, the change in convert should be done in asJavaObject
Signed-off-by: Dmitrii Tikhomirov <[email protected]>
bfec4eb
to
18e031d
Compare
No description provided.