Package com.embabel.agent.spi.loop
Class ToolNotFoundException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class ToolNotFoundException extends RuntimeException
Thrown when the LLM requests a tool that is not available.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringrequestedToolprivate final List<String>availableToolsprivate final Throwablecauseprivate final Stringmessage
-
Constructor Summary
Constructors Constructor Description ToolNotFoundException(String requestedTool, List<String> availableTools)
-
Method Summary
Modifier and Type Method Description final StringgetRequestedTool()final List<String>getAvailableTools()-
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getRequestedTool
final String getRequestedTool()
-
getAvailableTools
final List<String> getAvailableTools()
-
-
-
-