ArtifactDeliveryRequest
public record ArtifactDeliveryRequest( String filePath, byte[] content, String fileName, String description, boolean force)
io/agentscope/harness/agent/artifact/ArtifactDeliveryRequest.java:37–38承载 Artifact Delivery 请求数据的记录类型。位于 io.agentscope.harness.agent.artifact 包。核心成员包括 filePath、content、fileName、description、force。
A single artifact delivery request issued by the deliver_artifact tool.
The tool downloads the file bytes from the agent filesystem and hands them to a configured
ArtifactDeliveryTarget, which is responsible for storing the artifact in its destination
(e.g. a project's artifacts directory / artifact store, WebDAV, an object store).
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
filePath | String | 执行文件路径相关操作。 path of the generated file in the agent workspace, normalized the same way as
other file tools (relative to the workspace, or absolute where permitted by the active
filesystem) |
content | byte[] | 执行内容相关操作。 file bytes downloaded from the filesystem |
fileName | String | 执行文件名称相关操作。 target file name after delivery; defaults to the basename of `filePath`.
Always a plain file name — the tool rejects values containing path separators, `.` or
`..`, so targets can resolve it directly |
description | String | 执行 `description` 方法。 short description of the artifact, may be `null` |
force | boolean | 执行 `force` 方法。 whether an existing artifact with the same `fileName` should be overwritten
(`false` by default — the target rejects the delivery and the agent should retry with a
new `fileName`) |
记录组件详情Record Component Detail
filePath
String filePath执行文件路径相关操作。
path of the generated file in the agent workspace, normalized the same way as other file tools (relative to the workspace, or absolute where permitted by the active filesystem)
io/agentscope/harness/agent/artifact/ArtifactDeliveryRequest.java:37–38content
byte[] content执行内容相关操作。
file bytes downloaded from the filesystem
io/agentscope/harness/agent/artifact/ArtifactDeliveryRequest.java:37–38fileName
String fileName执行文件名称相关操作。
target file name after delivery; defaults to the basename of filePath.
Always a plain file name — the tool rejects values containing path separators, . or
.., so targets can resolve it directly
io/agentscope/harness/agent/artifact/ArtifactDeliveryRequest.java:37–38description
String description执行 description 方法。
short description of the artifact, may be null
io/agentscope/harness/agent/artifact/ArtifactDeliveryRequest.java:37–38force
boolean force执行 force 方法。
whether an existing artifact with the same fileName should be overwritten
(false by default — the target rejects the delivery and the agent should retry with a
new fileName)
io/agentscope/harness/agent/artifact/ArtifactDeliveryRequest.java:37–38