Class BadTool
java.lang.Object
uno.anahata.asi.agi.event.BasicPropertyChangeSource
uno.anahata.asi.agi.tool.spi.AbstractTool<BadToolParam, BadToolCall>
uno.anahata.asi.agi.tool.spi.bad.BadTool
- All Implemented Interfaces:
PropertyChangeSource, Rebindable
A special tool implementation representing a tool that was requested by the
model but was not found in the registered toolkits.
- Author:
- anahata-gemini-pro-2.5
-
Field Summary
Fields inherited from class AbstractTool
description, name, permission, responseJsonSchema, toolkitFields inherited from class BasicPropertyChangeSource
propertyChangeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCall(AbstractModelMessage amm, String id, Map<String, Object> args) Factory method to create a tool-specific call object from raw model data.Template method hook for subclasses to provide their specific Response type.Methods inherited from class AbstractTool
getEffectiveMaxDepth, getSelectedModel, getTokenCount, resetTokenCount, setPermissionMethods inherited from class BasicPropertyChangeSource
addPropertyChangeListener, addPropertyChangeListener, rebind, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertyChangeSource
getPropertyChangeSupport
-
Constructor Details
-
BadTool
Constructs a new BadTool instance representing an unrecognized tool.- Parameters:
name- The unrecognized tool name.
-
-
Method Details
-
createCall
Description copied from class:AbstractToolFactory method to create a tool-specific call object from raw model data.- Specified by:
createCallin classAbstractTool<BadToolParam, BadToolCall>- Parameters:
amm- the model message the call will belong to.id- The call ID.args- The raw arguments from the model.- Returns:
- A new tool call instance.
-
getResponseType
Description copied from class:AbstractToolTemplate method hook for subclasses to provide their specific Response type.- Specified by:
getResponseTypein classAbstractTool<BadToolParam, BadToolCall>- Returns:
- The reflection Type of the corresponding AbstractToolResponse subclass.
-

