Record Class Inventory.SubagentInfo
java.lang.Object
java.lang.Record
io.agentscope.extensions.aistio.model.Inventory.SubagentInfo
- Enclosing class:
- Inventory
public static record Inventory.SubagentInfo(String name, String description, List<String> tools, String workspaceMode, String url, long invokeCount, long lastInvokedAt)
extends Record
A subagent reachable from this instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theinvokeCountrecord component.longReturns the value of thelastInvokedAtrecord component.name()Returns the value of thenamerecord component.tools()Returns the value of thetoolsrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.Returns the value of theworkspaceModerecord component.
-
Constructor Details
-
SubagentInfo
public SubagentInfo(String name, String description, List<String> tools, String workspaceMode, String url, long invokeCount, long lastInvokedAt) Creates an instance of aSubagentInforecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenttools- the value for thetoolsrecord componentworkspaceMode- the value for theworkspaceModerecord componenturl- the value for theurlrecord componentinvokeCount- the value for theinvokeCountrecord componentlastInvokedAt- the value for thelastInvokedAtrecord component
-
-
Method Details
-
toJsonMap
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
tools
Returns the value of thetoolsrecord component.- Returns:
- the value of the
toolsrecord component
-
workspaceMode
Returns the value of theworkspaceModerecord component.- Returns:
- the value of the
workspaceModerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
invokeCount
public long invokeCount()Returns the value of theinvokeCountrecord component.- Returns:
- the value of the
invokeCountrecord component
-
lastInvokedAt
public long lastInvokedAt()Returns the value of thelastInvokedAtrecord component.- Returns:
- the value of the
lastInvokedAtrecord component
-