Class BadToolCall
java.lang.Object
uno.anahata.asi.agi.event.BasicPropertyChangeSource
uno.anahata.asi.agi.message.AbstractPart
uno.anahata.asi.agi.tool.spi.AbstractToolCall<BadTool, BadToolResponse>
uno.anahata.asi.agi.tool.spi.bad.BadToolCall
- All Implemented Interfaces:
PropertyChangeSource, ThoughtSignature, Rebindable
Represents a call to a
BadTool, capturing an invalid tool request
from the model.- Author:
- anahata-gemini-pro-2.5
-
Field Summary
Fields inherited from class BasicPropertyChangeSource
propertyChangeSupport -
Constructor Summary
ConstructorsConstructorDescriptionBadToolCall(AbstractModelMessage amm, String id, @NonNull BadTool tool, @NonNull Map<String, Object> args) Constructs a new BadToolCall capturing the failed tool request details. -
Method Summary
Modifier and TypeMethodDescriptionprotected BadToolResponseCreates the corresponding response object for this tool call.Methods inherited from class AbstractToolCall
asText, calculateTokenCount, getDefaultMaxDepth, getEffectiveArgs, getMessage, getPrunedHint, getToolName, resetTokenCount, setModifiedArgumentMethods inherited from class AbstractPart
appendMetadata, createMetadataHeader, getAgi, getAgiConfig, getEffectiveMaxDepth, getEffectiveTokenCount, getIdentityLabel, getMetadataTokenCount, getRemainingDepth, getTokenCount, isAuto, isEffectivelyPruned, isPinned, isPruned, remove, setExpanded, setPruningState, setPruningState, setTokenCountMethods 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
getPropertyChangeSupportMethods inherited from interface ThoughtSignature
getThoughtSignature, setThoughtSignature
-
Constructor Details
-
BadToolCall
public BadToolCall(AbstractModelMessage amm, String id, @NonNull @NonNull BadTool tool, @NonNull @NonNull Map<String, Object> args) Constructs a new BadToolCall capturing the failed tool request details.- Parameters:
amm- The originating model message of the tool request.id- The unique identifier of the tool call.tool- The associated BadTool instance.args- The input arguments requested by the model.
-
-
Method Details
-
createResponse
Description copied from class:AbstractToolCallCreates the corresponding response object for this tool call. This acts as a factory method and is called once by the constructor.- Specified by:
createResponsein classAbstractToolCall<BadTool, BadToolResponse>- Returns:
- A new, un-executed tool response.
-

