AS AgentScopeAPI 手册 / API Reference

ExecuteResponse

public record ExecuteResponse(String output, Integer exitCode, boolean truncated)
源码Source io/agentscope/harness/agent/filesystem/model/ExecuteResponse.java:25–30

承载执行响应数据的记录类型。位于 io.agentscope.harness.agent.filesystem.model 包。核心成员包括 output、exitCode、truncated、isSuccess。

Result of code/shell execution.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
outputString
执行输出相关操作。
combined stdout and stderr output of the executed command
exitCodeInteger
执行 `exitCode` 方法。
the process exit code (0 indicates success, non-zero indicates failure)
truncatedboolean
执行 `truncated` 方法。
whether the output was truncated due to filesystem limitations

方法摘要Method Summary

方法Method说明Description
public boolean isSuccess()
判断是否成功。
Returns whether the success.

记录组件详情Record Component Detail

output

String output

执行输出相关操作。

combined stdout and stderr output of the executed command

源码Source io/agentscope/harness/agent/filesystem/model/ExecuteResponse.java:25–30

exitCode

Integer exitCode

执行 exitCode 方法。

the process exit code (0 indicates success, non-zero indicates failure)

源码Source io/agentscope/harness/agent/filesystem/model/ExecuteResponse.java:25–30

truncated

boolean truncated

执行 truncated 方法。

whether the output was truncated due to filesystem limitations

源码Source io/agentscope/harness/agent/filesystem/model/ExecuteResponse.java:25–30

方法详情Method Detail

isSuccess

public boolean isSuccess()

判断是否成功。

Returns whether the success.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/harness/agent/filesystem/model/ExecuteResponse.java:27–29
基于官方固定版本源码静态生成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.