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 aErrorContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagenticScoperecord component.Returns the value of theagentNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ErrorContext
public ErrorContext(String agentName, AgenticScope agenticScope, AgentInvocationException exception) Creates an instance of aErrorContextrecord class.- Parameters:
agentName- the value for theagentNamerecord componentagenticScope- the value for theagenticScoperecord componentexception- the value for theexceptionrecord 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 theagentNamerecord component.- Returns:
- the value of the
agentNamerecord component
-
agenticScope
Returns the value of theagenticScoperecord component.- Returns:
- the value of the
agenticScoperecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-