Class DefaultToolMetadata.Builder
java.lang.Object
org.springframework.ai.tool.metadata.DefaultToolMetadata.Builder
- Enclosing class:
- DefaultToolMetadata
-
Method Summary
Modifier and TypeMethodDescriptionbuild()requiresConfirmation(boolean requiresConfirmation) Whether a call of the tool needs a person's confirmation before it runs.returnDirect(boolean returnDirect)
-
Method Details
-
returnDirect
-
requiresConfirmation
Whether a call of the tool needs a person's confirmation before it runs.- Parameters:
requiresConfirmation-trueto pause the tool-calling loop on a call of the tool- Returns:
- this builder
- Since:
- 2.1.0
-
build
-