Interface ToolInputGuardrailsConfig.ToolInputGuardrailsConfigBuilder
- All Superinterfaces:
GuardrailsConfigBuilder<ToolInputGuardrailsConfig>
- Enclosing interface:
ToolInputGuardrailsConfig
@Experimental
public static interface ToolInputGuardrailsConfig.ToolInputGuardrailsConfigBuilder
extends GuardrailsConfigBuilder<ToolInputGuardrailsConfig>
Builder for
ToolInputGuardrailsConfig instances.
This is needed so other frameworks (like Quarkus and Spring) can extend the configuration mechanism with their own implementations while also adhering to the interfaces and specs defined here.
- Since:
- 1.25.0
-
Method Summary
Modifier and TypeMethodDescriptionargumentsRewriteNoteEnabled(boolean isEnabled) Sets whether the tool result that the LLM gets carries the arguments rewrite note.argumentsRewriteNoteTemplate(PromptTemplate template) Sets the template of the arguments rewrite note.Methods inherited from interface GuardrailsConfigBuilder
build
-
Method Details
-
argumentsRewriteNoteEnabled
ToolInputGuardrailsConfig.ToolInputGuardrailsConfigBuilder argumentsRewriteNoteEnabled(boolean isEnabled) Sets whether the tool result that the LLM gets carries the arguments rewrite note. Enabled by default.- Parameters:
isEnabled- whether the note is added- Returns:
- this builder
- See Also:
-
argumentsRewriteNoteTemplate
ToolInputGuardrailsConfig.ToolInputGuardrailsConfigBuilder argumentsRewriteNoteTemplate(PromptTemplate template) Sets the template of the arguments rewrite note.- Parameters:
template- the template; must contain{{result}}, so the LLM still gets the result of the tool, and use no variable other than those ofToolInputGuardrailsConfig.argumentsRewriteNoteTemplate()- Returns:
- this builder
- See Also:
-