Record Class BeforeAgentToolExecution
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.observability.BeforeAgentToolExecution
public record BeforeAgentToolExecution(AgenticScope agenticScope, AgentInstance agentInstance, BeforeToolExecution toolExecution)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBeforeAgentToolExecution(AgenticScope agenticScope, AgentInstance agentInstance, BeforeToolExecution toolExecution) Creates an instance of aBeforeAgentToolExecutionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagenticScoperecord component.Returns the value of theagentInstancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetoolExecutionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BeforeAgentToolExecution
public BeforeAgentToolExecution(AgenticScope agenticScope, AgentInstance agentInstance, BeforeToolExecution toolExecution) Creates an instance of aBeforeAgentToolExecutionrecord class.- Parameters:
agenticScope- the value for theagenticScoperecord componentagentInstance- the value for theagentInstancerecord componenttoolExecution- the value for thetoolExecutionrecord 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). -
agenticScope
Returns the value of theagenticScoperecord component.- Returns:
- the value of the
agenticScoperecord component
-
agentInstance
Returns the value of theagentInstancerecord component.- Returns:
- the value of the
agentInstancerecord component
-
toolExecution
Returns the value of thetoolExecutionrecord component.- Returns:
- the value of the
toolExecutionrecord component
-