AS AgentScopeAPI 手册 / API Reference

TransportConstants

public class TransportConstants
源码Source io/agentscope/core/model/transport/TransportConstants.java:21–36

传输层 Constants,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.model.transport 包。核心成员包括 STREAM_FORMAT_HEADER、STREAM_FORMAT_NDJSON。

Constants for HTTP transport layer.

字段摘要Field Summary

字段Field类型Type说明Description
STREAM_FORMAT_HEADER
staticfinal
String
流格式请求头字段。
Header name for specifying stream format.
STREAM_FORMAT_NDJSON
staticfinal
String
用于NDJSON 流格式的值。
Value for NDJSON stream format.

字段详情Field Detail

STREAM_FORMAT_HEADER

public static final String STREAM_FORMAT_HEADER
staticfinal

流格式请求头字段。声明为 public static final String STREAM_FORMAT_HEADER。

Header name for specifying stream format.

源码Source io/agentscope/core/model/transport/TransportConstants.java:26

STREAM_FORMAT_NDJSON

public static final String STREAM_FORMAT_NDJSON
staticfinal

用于NDJSON 流格式的值。

Value for NDJSON stream format.

源码Source io/agentscope/core/model/transport/TransportConstants.java:31
基于官方固定版本源码静态生成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.