Uses of Class
dev.langchain4j.guardrail.ToolOutputGuardrailRequest
Packages that use ToolOutputGuardrailRequest
Package
Description
-
Uses of ToolOutputGuardrailRequest in dev.langchain4j.guardrail
Subclasses with type arguments of type ToolOutputGuardrailRequest in dev.langchain4j.guardrailModifier and TypeClassDescriptionclassTheGuardrailExecutorforToolOutputGuardrails.static classBuilder class for constructing instances ofToolOutputGuardrailExecutor.Subinterfaces with type arguments of type ToolOutputGuardrailRequest in dev.langchain4j.guardrailModifier and TypeInterfaceDescriptioninterfaceA tool output guardrail is a rule applied after a tool was executed, to validate or rewrite the result before the LLM sees it.Classes in dev.langchain4j.guardrail that implement interfaces with type arguments of type ToolOutputGuardrailRequestModifier and TypeClassDescriptionfinal classRepresents the parameter passed to a tool output guardrail, after a tool has been executed.Methods in dev.langchain4j.guardrail that return ToolOutputGuardrailRequestModifier and TypeMethodDescriptionToolOutputGuardrailRequest.Builder.build()Builds the request.Replaces the text contents with a singleTextContent(placed where the first text content was, or first if there was none), keeping the non-text contents and the error flag.Methods in dev.langchain4j.guardrail with parameters of type ToolOutputGuardrailRequestModifier and TypeMethodDescriptionToolOutputGuardrailResult.rewrittenContents(ToolOutputGuardrailRequest request) Gets the contents of the tool result after applying this result to the given request.booleanToolOutputGuardrailResult.rewrittenIsError(ToolOutputGuardrailRequest request) Gets the error flag of the tool result after applying this result to the given request.ToolOutputGuardrail.validate(ToolOutputGuardrailRequest request) Validates the result of a tool execution, including error results (ToolOutputGuardrailRequest.isError()). -
Uses of ToolOutputGuardrailRequest in dev.langchain4j.observability.api.event
Subclasses with type arguments of type ToolOutputGuardrailRequest in dev.langchain4j.observability.api.eventModifier and TypeClassDescriptionstatic classBuilder forToolOutputGuardrailExecutedEventinstances.Subinterfaces with type arguments of type ToolOutputGuardrailRequest in dev.langchain4j.observability.api.eventModifier and TypeInterfaceDescriptioninterfaceRepresents an event triggered upon the execution of a tool output guardrail. -
Uses of ToolOutputGuardrailRequest in dev.langchain4j.observability.api.listener
Subinterfaces with type arguments of type ToolOutputGuardrailRequest in dev.langchain4j.observability.api.listenerModifier and TypeInterfaceDescriptioninterfaceA listener forToolOutputGuardrailExecutedEvents, triggered upon the execution of tool output guardrails. -
Uses of ToolOutputGuardrailRequest in dev.langchain4j.observability.event
Subclasses with type arguments of type ToolOutputGuardrailRequest in dev.langchain4j.observability.eventModifier and TypeClassDescriptionclassDefault implementation ofToolOutputGuardrailExecutedEvent. -
Uses of ToolOutputGuardrailRequest in dev.langchain4j.service.guardrail
Methods in dev.langchain4j.service.guardrail with parameters of type ToolOutputGuardrailRequestModifier and TypeMethodDescriptionToolGuardrailService.executeOutputGuardrails(ToolGuardrailService.ToolKey key, ToolOutputGuardrailRequest request) Executes the output guardrails of the tool.ToolGuardrailService.executeOutputGuardrailsAsync(ToolGuardrailService.ToolKey key, ToolOutputGuardrailRequest request) Non-blocking counterpart ofToolGuardrailService.executeOutputGuardrails(ToolKey, ToolOutputGuardrailRequest): nothing is thrown, a fatal failure, an invalid key or a request that does not match the key fails the returned future. -
Uses of ToolOutputGuardrailRequest in dev.langchain4j.spi.guardrail
Subinterfaces with type arguments of type ToolOutputGuardrailRequest in dev.langchain4j.spi.guardrailModifier and TypeInterfaceDescriptioninterfaceRepresents a factory for creating instances ofToolOutputGuardrailExecutor.ToolOutputGuardrailExecutorBuilder.