You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When AI Service method is wrongly configured (e.g. multiple parameters withtout any annotations), an exception will be thrown at runtime, right before this method is called:
dev.langchain4j.exception.IllegalConfigurationException: Parameter 'arg0' of method 'translate' should be annotated with @V or @UserMessage or @UserName or @MemoryId
at dev.langchain4j.exception.IllegalConfigurationException.illegalConfiguration(IllegalConfigurationException.java:16)
at dev.langchain4j.service.DefaultAiServices.validateParameters(DefaultAiServices.java:51)
at dev.langchain4j.service.DefaultAiServices$1.invoke(DefaultAiServices.java:85)
Ideally this validation should be performed as early as possible, at the time of AI Service creation or even better, during compilation.
The text was updated successfully, but these errors were encountered:
When AI Service method is wrongly configured (e.g. multiple parameters withtout any annotations), an exception will be thrown at runtime, right before this method is called:
Ideally this validation should be performed as early as possible, at the time of AI Service creation or even better, during compilation.
The text was updated successfully, but these errors were encountered: