-
Notifications
You must be signed in to change notification settings - Fork 103
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
Support for handling non-existent tools #1207
Comments
This is definitely an interesting idea. @cescoffier @edeandrea I wonder if guardrails could be applicable in this case |
Guardrails for tools is definitely something we want to add, and yes, a "pre-tools-invocation" guardrail would detect that it is trying to invoke something that is not there. |
@langchain4j are there any other approaches being discussed in LangChain4j around this topic? |
Hi @geoand, yes: langchain4j/langchain4j#1052 |
Thanks @langchain4j! |
I think this is definitely a great idea! But I also think that this should be handled in upstream LC4j? What would be another super idea was a guardrail that could prevent the llm from calling a valid/existing tool when it shouldn't :) |
Agreed |
It will be nice if we can have custom handling for non-existent tools.
I am playing around with the
SystemMessage
prompt and tools support. Every now and then the local LLM will hallucinate the tool name, which would result in a runtime error.e.g,
Similar to other capabilities within Quarkus, it would be great if there was a way for me to plug in my custom error-handler so that I can remind the LLM about the available list of tools.
e.g.,
The text was updated successfully, but these errors were encountered: