ByteStream
@JsonIgnoreProperties(ignoreUnknown = true) public class ByteStream
源码Source
io/agentscope/core/rag/integration/haystack/model/ByteStream.java:23–73Byte 流,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.rag.integration.haystack.model 包。核心成员包括 getData、setData、getMeta、setMeta、getMimeType、setMimeType。
A class in io.agentscope.core.rag.integration.haystack.model that talks to model services and returns generated or embedded output. Declared in io.agentscope.core.rag.integration.haystack.model.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public List<Integer> getData() | 获取数据。 Returns the data. |
public void setData(List<Integer> data) | 设置数据。 Sets the data. |
public Map<String, Object> getMeta() | 获取元数据。 Returns the meta. |
public void setMeta(Map<String, Object> meta) | 设置元数据。 Sets the meta. |
public String getMimeType() | 获取MIME 类型。 Returns the mime type. |
public void setMimeType(String mimeType) | 设置MIME 类型。 Sets the mime type. |
public String toString() | 返回 `toString` 结果。 Returns the to string. |
方法详情Method Detail
getData
public List<Integer> getData()
获取数据。
Returns the data.
List<Integer>返回列出。Returns list.
源码Source
io/agentscope/core/rag/integration/haystack/model/ByteStream.java:37–39setData
public void setData(List<Integer> data)
设置数据。
Sets the data.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | List<Integer> | 数据(类型 `List`)。The data. |
源码Source
io/agentscope/core/rag/integration/haystack/model/ByteStream.java:41–43getMeta
public Map<String, Object> getMeta()
获取元数据。
Returns the meta.
Map<String, Object>返回映射。Returns map.
源码Source
io/agentscope/core/rag/integration/haystack/model/ByteStream.java:45–47setMeta
public void setMeta(Map<String, Object> meta)
设置元数据。
Sets the meta.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
meta | Map<String, Object> | 元数据(类型 `Map`)。The meta. |
源码Source
io/agentscope/core/rag/integration/haystack/model/ByteStream.java:49–51getMimeType
public String getMimeType()
获取MIME 类型。
Returns the mime type.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/rag/integration/haystack/model/ByteStream.java:53–55setMimeType
public void setMimeType(String mimeType)
设置MIME 类型。
Sets the mime type.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mimeType | String | MIME 类型(类型 `String`)。The mime type. |
源码Source
io/agentscope/core/rag/integration/haystack/model/ByteStream.java:57–59toString
public String toString()
返回 toString 结果。
Returns the to string.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/rag/integration/haystack/model/ByteStream.java:61–72