Record Class DefaultOutputGuardrailExecutedEvent
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.audit.guardrails.internal.DefaultOutputGuardrailExecutedEvent
- All Implemented Interfaces:
GuardrailExecutedEvent<dev.langchain4j.guardrail.OutputGuardrailRequest,,dev.langchain4j.guardrail.OutputGuardrailResult, dev.langchain4j.guardrail.OutputGuardrail> OutputGuardrailExecutedEvent,LLMInteractionEvent
@Deprecated(forRemoval=true)
public record DefaultOutputGuardrailExecutedEvent(AuditSourceInfo sourceInfo, dev.langchain4j.guardrail.OutputGuardrailRequest request, dev.langchain4j.guardrail.OutputGuardrailResult result, Class<dev.langchain4j.guardrail.OutputGuardrail> guardrailClass)
extends Record
implements OutputGuardrailExecutedEvent
Deprecated, for removal: This API element is subject to removal in a future version.
In favor of https://docs.langchain4j.dev/tutorials/observability#ai-service-observability
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultOutputGuardrailExecutedEvent(AuditSourceInfo sourceInfo, dev.langchain4j.guardrail.OutputGuardrailRequest request, dev.langchain4j.guardrail.OutputGuardrailResult result, Class<dev.langchain4j.guardrail.OutputGuardrail> guardrailClass) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aDefaultOutputGuardrailExecutedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one.Class<dev.langchain4j.guardrail.OutputGuardrail> Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theguardrailClassrecord component.final inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object.dev.langchain4j.guardrail.OutputGuardrailRequestrequest()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of therequestrecord component.dev.langchain4j.guardrail.OutputGuardrailResultresult()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theresultrecord component.Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thesourceInforecord component.final StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class.
-
Constructor Details
-
DefaultOutputGuardrailExecutedEvent
public DefaultOutputGuardrailExecutedEvent(AuditSourceInfo sourceInfo, dev.langchain4j.guardrail.OutputGuardrailRequest request, dev.langchain4j.guardrail.OutputGuardrailResult result, Class<dev.langchain4j.guardrail.OutputGuardrail> guardrailClass) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aDefaultOutputGuardrailExecutedEventrecord class.- Parameters:
sourceInfo- the value for thesourceInforecord componentrequest- the value for therequestrecord componentresult- the value for theresultrecord componentguardrailClass- the value for theguardrailClassrecord component
-
-
Method Details
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
sourceInfo
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thesourceInforecord component.- Specified by:
sourceInfoin interfaceLLMInteractionEvent- Returns:
- the value of the
sourceInforecord component
-
request
public dev.langchain4j.guardrail.OutputGuardrailRequest request()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of therequestrecord component.- Specified by:
requestin interfaceGuardrailExecutedEvent<dev.langchain4j.guardrail.OutputGuardrailRequest,dev.langchain4j.guardrail.OutputGuardrailResult, dev.langchain4j.guardrail.OutputGuardrail> - Returns:
- the value of the
requestrecord component
-
result
public dev.langchain4j.guardrail.OutputGuardrailResult result()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theresultrecord component.- Specified by:
resultin interfaceGuardrailExecutedEvent<dev.langchain4j.guardrail.OutputGuardrailRequest,dev.langchain4j.guardrail.OutputGuardrailResult, dev.langchain4j.guardrail.OutputGuardrail> - Returns:
- the value of the
resultrecord component
-
guardrailClass
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theguardrailClassrecord component.- Specified by:
guardrailClassin interfaceGuardrailExecutedEvent<dev.langchain4j.guardrail.OutputGuardrailRequest,dev.langchain4j.guardrail.OutputGuardrailResult, dev.langchain4j.guardrail.OutputGuardrail> - Returns:
- the value of the
guardrailClassrecord component
-