GeminiCredential
@JsonIgnoreProperties(ignoreUnknown = true) @JsonPropertyOrder({"id", "type", "api_key"}) public final class GeminiCredential extends CredentialBase
源码Source
io/agentscope/extensions/model/gemini/credential/GeminiCredential.java:28–91Gemini 凭证,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.model.gemini.credential 包,继承自 CredentialBase。核心成员包括 getType、getApiKey、getChatModelClass、toString、builder、TYPE。
Credential for the Google Gemini API.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 A class in io.agentscope.extensions.model.gemini.credential that talks to model services and returns generated or embedded output. |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
TYPEstaticfinal | String | 类型字段。 The TYPE field. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getType() | 获取类型。 Returns the type. |
public String getApiKey() | 获取API 键。 Returns the api key. |
public Class<? extends ChatModelBase> getChatModelClass() | 获取聊天模型类。 Returns the chat model class. |
public String toString() | 返回 `toString` 结果。 Returns the to string. |
public static Builder builder()static | 返回构建器实例。 Returns the builder. |
字段详情Field Detail
TYPE
public static final String TYPE
staticfinal
类型字段。声明为 public static final String TYPE。
The TYPE field.
源码Source
io/agentscope/extensions/model/gemini/credential/GeminiCredential.java:32方法详情Method Detail
getType
public String getType()
获取类型。
Returns the type.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/gemini/credential/GeminiCredential.java:47–50getApiKey
public String getApiKey()
获取API 键。
Returns the api key.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/gemini/credential/GeminiCredential.java:52–55getChatModelClass
public Class<? extends ChatModelBase> getChatModelClass()
获取聊天模型类。
Returns the chat model class.
Class<? extends ChatModelBase>返回类。Returns class.
源码Source
io/agentscope/extensions/model/gemini/credential/GeminiCredential.java:57–60toString
public String toString()
返回 toString 结果。
Returns the to string.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/gemini/credential/GeminiCredential.java:62–65builder
public static Builder builder()
static
返回构建器实例。
Returns the builder.
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/model/gemini/credential/GeminiCredential.java:67–69嵌套类详情Nested Class Detail
Builder
public static final class Builder构建器,用于构建并配置目标实例。位于 io.agentscope.extensions.model.gemini.credential 包。核心成员包括 id、apiKey、build。
A class in io.agentscope.extensions.model.gemini.credential that talks to model services and returns generated or embedded output. Declared in io.agentscope.extensions.model.gemini.credential.