AS AgentScopeAPI 手册 / API Reference

EndpointType

public enum EndpointType
源码Source io/agentscope/extensions/model/dashscope/EndpointType.java:33–52

定义端点类型的枚举。位于 io.agentscope.extensions.model.dashscope 包。核心成员包括 AUTO、TEXT、MULTIMODAL。

Enum representing the endpoint type for DashScope models.

This allows developers to explicitly specify which API endpoint to use, overriding the automatic model name-based detection.

Usage example:

`DashScopeChatModel model = DashScopeChatModel.builder()
.apiKey("sk-xxx")
.modelName("qwen3.5-plus")
.endpointType(EndpointType.MULTIMODAL) // Explicitly use multimodal API
.build();
`

枚举常量摘要Enum Constant Summary

常量Constant说明Description
AUTO
执行 `AUTO` 方法。
Automatically determine endpoint type based on model name.
TEXT
执行文本相关操作。
Force use of text generation API.
MULTIMODAL
执行多模态相关操作。
Force use of multimodal generation API.

枚举常量详情Enum Constant Detail

AUTO

AUTO
staticfinal

执行 AUTO 方法。

Automatically determine endpoint type based on model name.

另见See also @see DashScopeHttpClient#isMultimodalModel(String)
源码Source io/agentscope/extensions/model/dashscope/EndpointType.java:41

TEXT

TEXT
staticfinal

执行文本相关操作。

Force use of text generation API.

源码Source io/agentscope/extensions/model/dashscope/EndpointType.java:46

MULTIMODAL

MULTIMODAL
staticfinal

执行多模态相关操作。

Force use of multimodal generation API.

源码Source io/agentscope/extensions/model/dashscope/EndpointType.java:51
基于官方固定版本源码静态生成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.