AS AgentScopeAPI 手册 / API Reference

DeepSeekModelProvider

public final class DeepSeekModelProvider implements ModelProvider
源码Source io/agentscope/extensions/model/openai/compat/deepseek/DeepSeekModelProvider.java:32–98

DeepSeek 模型提供者,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.model.openai.compat.deepseek 包,实现 ModelProvider。核心成员包括 providerId、supports、create、DEFAULT_BASE_URL。

DeepSeek provider registered through java.util.ServiceLoader.

字段摘要Field Summary

字段Field类型Type说明Description
DEFAULT_BASE_URL
staticfinal
String
默认基类 URL字段。
The DEFAULT BASE URL field.

方法摘要Method Summary

方法Method说明Description
public String providerId()
返回提供者标识。
Returns the provider id.
public boolean supports(String modelId)
设置支持。
Performs the supports operation.
public Model create(String modelId)
创建并返回实例。
Creates and returns an instance.
public Model create(String modelId, ModelCreationContext context)
创建并返回实例。
Creates and returns an instance.

字段详情Field Detail

DEFAULT_BASE_URL

public static final String DEFAULT_BASE_URL
staticfinal

默认基类 URL字段。声明为 public static final String DEFAULT_BASE_URL。

The DEFAULT BASE URL field.

源码Source io/agentscope/extensions/model/openai/compat/deepseek/DeepSeekModelProvider.java:36

方法详情Method Detail

providerId

public String providerId()

返回提供者标识。

Returns the provider id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/model/openai/compat/deepseek/DeepSeekModelProvider.java:38–41

supports

public boolean supports(String modelId)

设置支持。

Performs the supports operation.

参数Parameters
名称Name类型Type说明Description
modelIdString模型标识(类型 `String`)。The model id.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/model/openai/compat/deepseek/DeepSeekModelProvider.java:43–46

create

public Model create(String modelId)

创建并返回实例。

Creates and returns an instance.

参数Parameters
名称Name类型Type说明Description
modelIdString模型标识(类型 `String`)。The model id.
返回Returns Model
返回模型。Returns model.
源码Source io/agentscope/extensions/model/openai/compat/deepseek/DeepSeekModelProvider.java:48–51

create

public Model create(String modelId, ModelCreationContext context)

创建并返回实例。

Creates and returns an instance.

参数Parameters
名称Name类型Type说明Description
modelIdString模型标识(类型 `String`)。The model id.
contextModelCreationContext上下文(类型 `ModelCreationContext`)。The context.
返回Returns Model
返回模型。Returns model.
源码Source io/agentscope/extensions/model/openai/compat/deepseek/DeepSeekModelProvider.java:53–85

继承成员Inherited Members

继承自Methods inherited from ModelProvider
基于官方固定版本源码静态生成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.