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 |
|---|---|---|
output | String | 执行输出相关操作。 combined stdout and stderr output of the executed command |
exitCode | Integer | 执行 `exitCode` 方法。 the process exit code (0 indicates success, non-zero indicates failure) |
truncated | boolean | 执行 `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–30exitCode
Integer exitCode执行 exitCode 方法。
the process exit code (0 indicates success, non-zero indicates failure)
源码Source
io/agentscope/harness/agent/filesystem/model/ExecuteResponse.java:25–30truncated
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.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/harness/agent/filesystem/model/ExecuteResponse.java:27–29