Package com.axelor.ai.chat.stream
Record Class ChatStreamRegistry.PendingCall
java.lang.Object
java.lang.Record
com.axelor.ai.chat.stream.ChatStreamRegistry.PendingCall
- Enclosing class:
ChatStreamRegistry
public static record ChatStreamRegistry.PendingCall(String toolName, String ownerUser, String claimedBy, String state)
extends Record
A client-tool call the run paused on.
state walks pending → claimed → resolved,
never backwards: a claim is single-shot (a claimed-but-dead executor's only exit is the TTL),
and the claimed→resolved transition wins exactly once. Claimable only by ownerUser's
sessions — the permission identity behind the tool never changes.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPendingCall(String toolName, String ownerUser, String claimedBy, String state) Creates an instance of aPendingCallrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclaimedByrecord 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 theownerUserrecord component.state()Returns the value of thestaterecord component.toolName()Returns the value of thetoolNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
PENDING
- See Also:
-
CLAIMED
- See Also:
-
RESOLVED
- See Also:
-
-
Constructor Details
-
PendingCall
Creates an instance of aPendingCallrecord class.- Parameters:
toolName- the value for thetoolNamerecord componentownerUser- the value for theownerUserrecord componentclaimedBy- the value for theclaimedByrecord componentstate- the value for thestaterecord component
-
-
Method Details
-
toString
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()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
toolName
Returns the value of thetoolNamerecord component.- Returns:
- the value of the
toolNamerecord component
-
ownerUser
Returns the value of theownerUserrecord component.- Returns:
- the value of the
ownerUserrecord component
-
claimedBy
Returns the value of theclaimedByrecord component.- Returns:
- the value of the
claimedByrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-