AS AgentScopeAPI 手册 / API Reference

ArtifactDeliveryRequest

public record ArtifactDeliveryRequest( String filePath, byte[] content, String fileName, String description, boolean force)
源码Source 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
filePathString
执行文件路径相关操作。
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)
contentbyte[]
执行内容相关操作。
file bytes downloaded from the filesystem
fileNameString
执行文件名称相关操作。
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
descriptionString
执行 `description` 方法。
short description of the artifact, may be `null`
forceboolean
执行 `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)

源码Source io/agentscope/harness/agent/artifact/ArtifactDeliveryRequest.java:37–38

content

byte[] content

执行内容相关操作。

file bytes downloaded from the filesystem

源码Source io/agentscope/harness/agent/artifact/ArtifactDeliveryRequest.java:37–38

fileName

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

源码Source io/agentscope/harness/agent/artifact/ArtifactDeliveryRequest.java:37–38

description

String description

执行 description 方法。

short description of the artifact, may be null

源码Source io/agentscope/harness/agent/artifact/ArtifactDeliveryRequest.java:37–38

force

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)

源码Source io/agentscope/harness/agent/artifact/ArtifactDeliveryRequest.java:37–38
基于官方固定版本源码静态生成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.