AS AgentScopeAPI 手册 / API Reference

State

public static final class State
源码Source io/agentscope/extensions/controlplane/adapter/AgentTaskOutcome.java:51–71

状态,承载智能体的部署、调度与服务化运行。位于 io.agentscope.extensions.controlplane.adapter 包。核心成员包括 markTerminalCommitted、isTerminalCommitted、submit、take。

Per-dispatch storage; never stored on a shared tool or HarnessAgent instance.

方法摘要Method Summary

方法Method说明Description
public void markTerminalCommitted()
执行 `markTerminalCommitted` 方法。
Returns the mark terminal committed.
public boolean isTerminalCommitted()
判断是否 `isTerminalCommitted`。
Returns whether the terminal committed.
public void submit(AgentTaskOutcome outcome)
设置提交。
Performs the submit operation.
public AgentTaskOutcome take()
返回 `take` 结果。
Returns the take.

方法详情Method Detail

markTerminalCommitted

public void markTerminalCommitted()

执行 markTerminalCommitted 方法。

Returns the mark terminal committed.

源码Source io/agentscope/extensions/controlplane/adapter/AgentTaskOutcome.java:54–56

isTerminalCommitted

public boolean isTerminalCommitted()

判断是否 isTerminalCommitted。

Returns whether the terminal committed.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/controlplane/adapter/AgentTaskOutcome.java:58–60

submit

public void submit(AgentTaskOutcome outcome)

设置提交。

Performs the submit operation.

参数Parameters
名称Name类型Type说明Description
outcomeAgentTaskOutcomeoutcome(类型 `AgentTaskOutcome`)。The outcome.
源码Source io/agentscope/extensions/controlplane/adapter/AgentTaskOutcome.java:64–66

take

public AgentTaskOutcome take()

返回 take 结果。

Returns the take.

返回Returns AgentTaskOutcome
返回AgentTaskOutcome。Returns agent task outcome.
源码Source io/agentscope/extensions/controlplane/adapter/AgentTaskOutcome.java:68–70
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.