Record Class ErrorContext
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.agent.ErrorContext
public record ErrorContext(String agentName, AgenticScope agenticScope, AgentInvocationException exception)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionErrorContext
(String agentName, AgenticScope agenticScope, AgentInvocationException exception) Creates an instance of aErrorContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagenticScope
record component.Returns the value of theagentName
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexception
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ErrorContext
public ErrorContext(String agentName, AgenticScope agenticScope, AgentInvocationException exception) Creates an instance of aErrorContext
record class.- Parameters:
agentName
- the value for theagentName
record componentagenticScope
- the value for theagenticScope
record componentexception
- the value for theexception
record 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)
. -
agentName
Returns the value of theagentName
record component.- Returns:
- the value of the
agentName
record component
-
agenticScope
Returns the value of theagenticScope
record component.- Returns:
- the value of the
agenticScope
record component
-
exception
Returns the value of theexception
record component.- Returns:
- the value of the
exception
record component
-