We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When using a tool without input parameters, a NPE is happening.
Log and Stack trace Cannot invoke "dev.langchain4j.agent.tool.ToolParameters.properties()" because "toolParameters" is null
Cannot invoke "dev.langchain4j.agent.tool.ToolParameters.properties()" because "toolParameters" is null
To Reproduce
ToolSpecification currentTime = ToolSpecification.builder() .name("currentTime") .description("currentTime") .build();
Expected behavior Should work without NPE.
Please complete the following information:
The text was updated successfully, but these errors were encountered:
@1402564807 fyi
Sorry, something went wrong.
Once again, I went to test and found the zhipu API requires that tools must carry parameters ,So does this bug still need to be fix?
Or we can add a judgement that throws the specified exception
@yongxingMa what do you mean? This bug should still be fixed
@langchain4j Sorry I just saw this question, I will deal with it now
Fix: langchain4j#950
eb0c25a
Successfully merging a pull request may close this issue.
Describe the bug
When using a tool without input parameters, a NPE is happening.
Log and Stack trace
Cannot invoke "dev.langchain4j.agent.tool.ToolParameters.properties()" because "toolParameters" is null
To Reproduce
Expected behavior
Should work without NPE.
Please complete the following information:
The text was updated successfully, but these errors were encountered: