类 Artifact
java.lang.Object
io.github.a2ap.core.model.Artifact
- 所有已实现的接口:
TaskUpdate
Represents an artifact produced by a task during agent execution.
Artifacts are structured outputs generated by agents as they process tasks.
They represent discrete pieces of work or content that can be created, modified,
or referenced throughout the task lifecycle. Artifacts provide a way to track
and manage the tangible outputs of agent processing.
Key characteristics:
- Each artifact has a unique identifier within the task context
- Artifacts can contain multiple parts of different types (text, files, data)
- They can be incrementally updated through TaskArtifactUpdateEvent objects
- Metadata provides additional context for processing or display purposes
Common artifact types include:
- Generated documents or reports
- Code files or scripts
- Data analysis results
- Configuration files
- Media content
Artifacts implement the TaskUpdate interface, allowing them to be used in
task update operations and event streaming scenarios.
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Artifact.Builderbuilder()booleangetName()getParts()inthashCode()voidsetArtifactId(String artifactId) voidsetDescription(String description) voidsetMetadata(Map<String, Object> metadata) voidvoidtoString()