Package ai.mindconnect.agent.tool
Record Class ToolCallScope
java.lang.Object
java.lang.Record
ai.mindconnect.agent.tool.ToolCallScope
public record ToolCallScope(Namespace namespace, String userId, UUID sessionId, UUID agentDefinitionId)
extends Record
Per-invocation context passed to a
ToolFactory when resolving a
concrete Tool for one agent call.-
Constructor Summary
ConstructorsConstructorDescriptionToolCallScope(Namespace namespace, String userId, UUID sessionId, UUID agentDefinitionId) Creates an instance of aToolCallScoperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentDefinitionIdrecord 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 thenamespacerecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
ToolCallScope
Creates an instance of aToolCallScoperecord class.- Parameters:
namespace- the value for thenamespacerecord componentuserId- the value for theuserIdrecord componentsessionId- the value for thesessionIdrecord componentagentDefinitionId- the value for theagentDefinitionIdrecord 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). -
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
agentDefinitionId
Returns the value of theagentDefinitionIdrecord component.- Returns:
- the value of the
agentDefinitionIdrecord component
-