Interface ToolMetadata
- All Known Implementing Classes:
DefaultToolMetadata
public interface ToolMetadata
Metadata about a tool specification and execution.
- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultToolMetadata.Builderbuilder()Create a defaultToolMetadatabuilder.static ToolMetadataCreate a defaultToolMetadatainstance from aMethod.default booleanWhether a call of the tool needs a person's confirmation before it runs.default booleanWhether the tool result should be returned directly or passed back to the model.
-
Method Details
-
returnDirect
default boolean returnDirect()Whether the tool result should be returned directly or passed back to the model. -
requiresConfirmation
default boolean requiresConfirmation()Whether a call of the tool needs a person's confirmation before it runs.DefaultToolCallingManagerrefuses to run such a call without a decision, and the tool-calling loop pauses on it; seeToolCallDecisions. A customToolCallingManagerhas to check it itself.- Since:
- 2.1.0
-
builder
Create a defaultToolMetadatabuilder. -
from
Create a defaultToolMetadatainstance from aMethod.
-