mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-15 03:55:09 +08:00
20 lines
600 B
Java
20 lines
600 B
Java
package vip.mate.tool;
|
|
|
|
/**
|
|
* Signals an LLM-correctable tool argument error whose message is safe to
|
|
* return to the model, including for {@code returnDirect} tools.
|
|
*
|
|
* <p>Ordinary exceptions from direct tools remain redacted because they can
|
|
* contain credentials, connection strings, or other sensitive internals.
|
|
*/
|
|
public class ToolInputValidationException extends RuntimeException {
|
|
|
|
public ToolInputValidationException(String message) {
|
|
super(message);
|
|
}
|
|
|
|
public ToolInputValidationException(String message, Throwable cause) {
|
|
super(message, cause);
|
|
}
|
|
}
|