AS AgentScopeAPI 手册 / API Reference

GeminiConfig

interface GeminiConfig
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:145–178

定义 Gemini 配置契约的接口。位于 io.agentscope.quarkus.runtime 包。核心成员包括 apiKey、modelName、stream、useVertexAi、project、location。

Gemini configuration.

方法摘要Method Summary

方法Method说明Description
public Optional<String> apiKey()
返回API 键。
API key for Gemini.
public String modelName()
返回模型名称。
Model name (e.g., gemini-2.0-flash-exp).
public boolean stream()
返回流。
Enable streaming.
public boolean useVertexAi()
返回 `useVertexAi` 结果。
Use Vertex AI (optional).
public Optional<String> project()
返回 `project` 结果。
GCP project (for Vertex AI).
public Optional<String> location()
返回 `location` 结果。
GCP location (for Vertex AI).

方法详情Method Detail

apiKey

public Optional<String> apiKey()

返回API 键。

API key for Gemini.

返回Returns Optional<String>
返回可选。Returns optional.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:149

modelName

public String modelName()

返回模型名称。

Model name (e.g., gemini-2.0-flash-exp).

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:154–155

stream

public boolean stream()

返回流。

Enable streaming.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:160–161

useVertexAi

public boolean useVertexAi()

返回 useVertexAi 结果。

Use Vertex AI (optional).

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:166–167

project

public Optional<String> project()

返回 project 结果。

GCP project (for Vertex AI).

返回Returns Optional<String>
返回可选。Returns optional.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:172

location

public Optional<String> location()

返回 location 结果。

GCP location (for Vertex AI).

返回Returns Optional<String>
返回可选。Returns optional.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:177
基于官方固定版本源码静态生成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.