类 TaskContextState

java.lang.Object
io.agentscope.core.state.TaskContextState

public final class TaskContextState extends Object
Mutable bag of Tasks carried by AgentState.

The inner list is mutable so meta-tools can append/replace tasks without rebuilding the whole context. getTasks() returns a defensive copy for read-only consumers.

  • 构造器详细资料

    • TaskContextState

      public TaskContextState()
      Construct an empty context.
    • TaskContextState

      public TaskContextState(List<Task> tasks)
  • 方法详细资料

    • getTasks

      public List<Task> getTasks()
    • tasksMutable

      public List<Task> tasksMutable()
      Live, mutable handle for tool implementations that need to append/remove tasks in place.
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object