AS AgentScopeAPI 手册 / API Reference

ByteStream

@JsonIgnoreProperties(ignoreUnknown = true) public class ByteStream
源码Source io/agentscope/core/rag/integration/haystack/model/ByteStream.java:23–73

Byte 流,与模型服务通信并返回生成或向量化结果。位于 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.

返回Returns List<Integer>
返回列出。Returns list.
源码Source io/agentscope/core/rag/integration/haystack/model/ByteStream.java:37–39

setData

public void setData(List<Integer> data)

设置数据。

Sets the data.

参数Parameters
名称Name类型Type说明Description
dataList<Integer>数据(类型 `List`)。The data.
源码Source io/agentscope/core/rag/integration/haystack/model/ByteStream.java:41–43

getMeta

public Map<String, Object> getMeta()

获取元数据。

Returns the meta.

返回Returns Map<String, Object>
返回映射。Returns map.
源码Source io/agentscope/core/rag/integration/haystack/model/ByteStream.java:45–47

setMeta

public void setMeta(Map<String, Object> meta)

设置元数据。

Sets the meta.

参数Parameters
名称Name类型Type说明Description
metaMap<String, Object>元数据(类型 `Map`)。The meta.
源码Source io/agentscope/core/rag/integration/haystack/model/ByteStream.java:49–51

getMimeType

public String getMimeType()

获取MIME 类型。

Returns the mime type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/haystack/model/ByteStream.java:53–55

setMimeType

public void setMimeType(String mimeType)

设置MIME 类型。

Sets the mime type.

参数Parameters
名称Name类型Type说明Description
mimeTypeStringMIME 类型(类型 `String`)。The mime type.
源码Source io/agentscope/core/rag/integration/haystack/model/ByteStream.java:57–59

toString

public String toString()

返回 toString 结果。

Returns the to string.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/haystack/model/ByteStream.java:61–72
基于官方固定版本源码静态生成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.