Uses of Interface
dev.langchain4j.guardrail.ToolInputGuardrail
Packages that use ToolInputGuardrail
Package
Description
-
Uses of ToolInputGuardrail in dev.langchain4j.agentic.agent
Methods in dev.langchain4j.agentic.agent with type parameters of type ToolInputGuardrailModifier and TypeMethodDescription<I extends ToolInputGuardrail>
BAgentBuilder.toolInputGuardrailClasses(Class<? extends I>... toolInputGuardrailClasses) Sets theToolInputGuardrailclasses to be instantiated and applied to every tool of the agent.<I extends ToolInputGuardrail>
BAgentBuilder.toolInputGuardrails(I... toolInputGuardrails) Sets theToolInputGuardrailinstances applied to every tool of the agent.Methods in dev.langchain4j.agentic.agent with parameters of type ToolInputGuardrailModifier and TypeMethodDescription<I extends ToolInputGuardrail>
BAgentBuilder.toolInputGuardrails(I... toolInputGuardrails) Sets theToolInputGuardrailinstances applied to every tool of the agent. -
Uses of ToolInputGuardrail in dev.langchain4j.guardrail
Subclasses with type arguments of type ToolInputGuardrail in dev.langchain4j.guardrailModifier and TypeClassDescriptionclassTheGuardrailExecutorforToolInputGuardrails.static classBuilder class for constructing instances ofToolInputGuardrailExecutor.Methods in dev.langchain4j.guardrail with parameters of type ToolInputGuardrailModifier and TypeMethodDescriptionprotected ToolInputGuardrailResultToolInputGuardrailExecutor.validate(ToolInputGuardrailRequest request, ToolInputGuardrail guardrail) AToolArgumentsExceptionthrown by a guardrail, for example byToolInputGuardrailRequest.argumentsAsMap()for arguments that cannot be parsed, is not a guardrail failure: it is thrown as is, so that the caller handles it like an arguments error of the tool.protected CompletableFuture<ToolInputGuardrailResult> ToolInputGuardrailExecutor.validateAsync(ToolInputGuardrailRequest request, ToolInputGuardrail guardrail, CancellationChain chain) Non-blocking counterpart ofToolInputGuardrailExecutor.validate(ToolInputGuardrailRequest, ToolInputGuardrail).Constructor parameters in dev.langchain4j.guardrail with type arguments of type ToolInputGuardrailModifierConstructorDescriptionprotectedToolInputGuardrailExecutor(ToolInputGuardrailsConfig config, List<ToolInputGuardrail> guardrails) -
Uses of ToolInputGuardrail in dev.langchain4j.observability.api.event
Subclasses with type arguments of type ToolInputGuardrail in dev.langchain4j.observability.api.eventModifier and TypeClassDescriptionstatic classBuilder forToolInputGuardrailExecutedEventinstances.Subinterfaces with type arguments of type ToolInputGuardrail in dev.langchain4j.observability.api.eventModifier and TypeInterfaceDescriptioninterfaceRepresents an event triggered upon the execution of a tool input guardrail. -
Uses of ToolInputGuardrail in dev.langchain4j.observability.api.listener
Subinterfaces with type arguments of type ToolInputGuardrail in dev.langchain4j.observability.api.listenerModifier and TypeInterfaceDescriptioninterfaceA listener forToolInputGuardrailExecutedEvents, triggered upon the execution of tool input guardrails. -
Uses of ToolInputGuardrail in dev.langchain4j.observability.event
Subclasses with type arguments of type ToolInputGuardrail in dev.langchain4j.observability.eventModifier and TypeClassDescriptionclassDefault implementation ofToolInputGuardrailExecutedEvent. -
Uses of ToolInputGuardrail in dev.langchain4j.service
Methods in dev.langchain4j.service with type parameters of type ToolInputGuardrailModifier and TypeMethodDescription<I extends ToolInputGuardrail>
AiServices<T> AiServices.toolInputGuardrailClasses(Class<? extends I>... guardrailClasses) Sets the classes of theToolInputGuardrails that apply to every tool.<I extends ToolInputGuardrail>
AiServices<T> AiServices.toolInputGuardrailClasses(@Nullable List<Class<? extends I>> guardrailClasses) Sets the classes of theToolInputGuardrails that apply to every tool.<I extends ToolInputGuardrail>
AiServices<T> AiServices.toolInputGuardrails(I... guardrails) Sets theToolInputGuardrailinstances that apply to every tool.<I extends ToolInputGuardrail>
AiServices<T> AiServices.toolInputGuardrails(@Nullable List<I> guardrails) Sets theToolInputGuardrailinstances that apply to every tool.Methods in dev.langchain4j.service with parameters of type ToolInputGuardrailModifier and TypeMethodDescription<I extends ToolInputGuardrail>
AiServices<T> AiServices.toolInputGuardrails(I... guardrails) Sets theToolInputGuardrailinstances that apply to every tool. -
Uses of ToolInputGuardrail in dev.langchain4j.service.guardrail
Methods in dev.langchain4j.service.guardrail with type parameters of type ToolInputGuardrailModifier and TypeMethodDescriptiondefault <I extends ToolInputGuardrail>
ToolGuardrailService.BuilderToolGuardrailService.Builder.inputGuardrailClasses(Class<? extends I>... guardrailClasses) Sets the classes of the input guardrails that apply to every tool, replacing the ones set before.<I extends ToolInputGuardrail>
ToolGuardrailService.BuilderToolGuardrailService.Builder.inputGuardrailClasses(@Nullable List<Class<? extends I>> guardrailClasses) Sets the classes of the input guardrails that apply to every tool, replacing the ones set before.default <I extends ToolInputGuardrail>
ToolGuardrailService.BuilderToolGuardrailService.Builder.inputGuardrails(I... guardrails) Sets the input guardrails that apply to every tool, replacing the ones set before.<I extends ToolInputGuardrail>
ToolGuardrailService.BuilderToolGuardrailService.Builder.inputGuardrails(@Nullable List<I> guardrails) Sets the input guardrails that apply to every tool, replacing the ones set before.Methods in dev.langchain4j.service.guardrail with parameters of type ToolInputGuardrailModifier and TypeMethodDescriptiondefault <I extends ToolInputGuardrail>
ToolGuardrailService.BuilderToolGuardrailService.Builder.inputGuardrails(I... guardrails) Sets the input guardrails that apply to every tool, replacing the ones set before. -
Uses of ToolInputGuardrail in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool that return types with arguments of type ToolInputGuardrailModifier and TypeMethodDescriptionAiServiceTool.toolInputGuardrails()Returns theToolInputGuardrails of this tool.Methods in dev.langchain4j.service.tool with parameters of type ToolInputGuardrailModifier and TypeMethodDescriptionAiServiceTool.Builder.toolInputGuardrails(ToolInputGuardrail... toolInputGuardrails) Sets theToolInputGuardrails of this tool.Method parameters in dev.langchain4j.service.tool with type arguments of type ToolInputGuardrailModifier and TypeMethodDescriptionAiServiceTool.Builder.toolInputGuardrails(@Nullable List<? extends ToolInputGuardrail> toolInputGuardrails) Sets theToolInputGuardrails of this tool, which run in the order given, after the guardrails set on theAiServicesbuilder, after the ones of the class annotation and after the ones of the method annotation, if any. -
Uses of ToolInputGuardrail in dev.langchain4j.spi.guardrail
Subinterfaces with type arguments of type ToolInputGuardrail in dev.langchain4j.spi.guardrailModifier and TypeInterfaceDescriptioninterfaceRepresents a factory for creating instances ofToolInputGuardrailExecutor.ToolInputGuardrailExecutorBuilder.