Record Class AgentTaskView
java.lang.Object
java.lang.Record
io.agentscope.spring.boot.admin.dto.AgentTaskView
public record AgentTaskView(String id, String subject, String description, String state, String owner, String createdAt, List<String> blocks, List<String> blockedBy, Map<String,Object> metadata)
extends Record
Read-only wire view of
Task (the per-AgentState task
record — the TodoWrite-style work-item list that an agent maintains for itself).
Distinct from SubagentTaskView, which describes a BackgroundTask dispatched
to a subagent via TaskRepository.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockedByrecord component.blocks()Returns the value of theblocksrecord component.Returns the value of thecreatedAtrecord component.Returns 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.id()Returns the value of theidrecord component.metadata()Returns the value of themetadatarecord component.static AgentTaskViewof(io.agentscope.core.state.Task t) owner()Returns the value of theownerrecord component.state()Returns the value of thestaterecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentTaskView
public AgentTaskView(String id, String subject, String description, String state, String owner, String createdAt, List<String> blocks, List<String> blockedBy, Map<String, Object> metadata) Creates an instance of aAgentTaskViewrecord class.- Parameters:
id- the value for theidrecord componentsubject- the value for thesubjectrecord componentdescription- the value for thedescriptionrecord componentstate- the value for thestaterecord componentowner- the value for theownerrecord componentcreatedAt- the value for thecreatedAtrecord componentblocks- the value for theblocksrecord componentblockedBy- the value for theblockedByrecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
of
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
blockedBy
Returns the value of theblockedByrecord component.- Returns:
- the value of the
blockedByrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-