BlobPart
@JsonClassDescription("Blob part") @JsonInclude(JsonInclude.Include.NON_NULL) public class BlobPart implements MessagePart
源码Source
io/agentscope/core/tracing/telemetry/model/BlobPart.java:25–76二进制对象片段,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.tracing.telemetry.model 包,实现 MessagePart。核心成员包括 getType、getContent、getMimeType、getModality、create。
Represents blob binary data sent inline to the model.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getType() | 获取类型。 Returns the type. |
public String getContent() | 获取内容。 Returns the content. |
public String getMimeType() | 获取MIME 类型。 Returns the mime type. |
public String getModality() | 获取 `getModality`。 Returns the modality. |
public static BlobPart create(String content, String mimeType, String modality)static | 创建并返回实例。 Creates and returns an instance. |
方法详情Method Detail
getType
public String getType()
获取类型。
Returns the type.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/tracing/telemetry/model/BlobPart.java:37–42getContent
public String getContent()
获取内容。
Returns the content.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/tracing/telemetry/model/BlobPart.java:44–50getMimeType
public String getMimeType()
获取MIME 类型。
Returns the mime type.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/tracing/telemetry/model/BlobPart.java:52–56getModality
public String getModality()
获取 getModality。
Returns the modality.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/tracing/telemetry/model/BlobPart.java:58–64create
public static BlobPart create(String content, String mimeType, String modality)
static
创建并返回实例。
Creates and returns an instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
content | String | 内容(类型 `String`)。The content. |
mimeType | String | MIME 类型(类型 `String`)。The mime type. |
modality | String | modality(类型 `String`)。The modality. |
BlobPart返回BlobPart。Returns blob part.
源码Source
io/agentscope/core/tracing/telemetry/model/BlobPart.java:66–68