Record Class DefaultToolExecutedEvent
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.audit.internal.DefaultToolExecutedEvent
- All Implemented Interfaces:
LLMInteractionEvent,ToolExecutedEvent
public record DefaultToolExecutedEvent(AuditSourceInfo sourceInfo, dev.langchain4j.agent.tool.ToolExecutionRequest request, String result)
extends Record
implements ToolExecutedEvent
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultToolExecutedEvent(AuditSourceInfo sourceInfo, dev.langchain4j.agent.tool.ToolExecutionRequest request, String result) Creates an instance of aDefaultToolExecutedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.dev.langchain4j.agent.tool.ToolExecutionRequestrequest()Returns the value of therequestrecord component.result()Returns the value of theresultrecord component.Returns the value of thesourceInforecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultToolExecutedEvent
public DefaultToolExecutedEvent(AuditSourceInfo sourceInfo, dev.langchain4j.agent.tool.ToolExecutionRequest request, String result) Creates an instance of aDefaultToolExecutedEventrecord class.- Parameters:
sourceInfo- the value for thesourceInforecord componentrequest- the value for therequestrecord componentresult- the value for theresultrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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
Returns the value of thesourceInforecord component.- Specified by:
sourceInfoin interfaceLLMInteractionEvent- Returns:
- the value of the
sourceInforecord component
-
request
public dev.langchain4j.agent.tool.ToolExecutionRequest request()Returns the value of therequestrecord component.- Specified by:
requestin interfaceToolExecutedEvent- Returns:
- the value of the
requestrecord component
-
result
Returns the value of theresultrecord component.- Specified by:
resultin interfaceToolExecutedEvent- Returns:
- the value of the
resultrecord component
-