AS AgentScopeAPI 手册 / API Reference

ModelProperties

@ConfigurationProperties("agentscope.model") public class ModelProperties
源码Source io/agentscope/micronaut/properties/ModelProperties.java:31–49

模型属性,承载智能体的部署、调度与服务化运行。位于 io.agentscope.micronaut.properties 包。核心成员包括 getProvider、setProvider。

Generic model selection properties that allow choosing which provider to use.

Example for selecting a provider:

`agentscope:
model:
provider: openai # or dashscope, gemini, anthropic
`

方法摘要Method Summary

方法Method说明Description
public String getProvider()
获取提供者。
Returns the provider.
public void setProvider(String provider)
设置提供者。
Sets the provider.

方法详情Method Detail

getProvider

public String getProvider()

获取提供者。

Returns the provider.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/micronaut/properties/ModelProperties.java:42–44

setProvider

public void setProvider(String provider)

设置提供者。

Sets the provider.

参数Parameters
名称Name类型Type说明Description
providerString提供者(类型 `String`)。The provider.
源码Source io/agentscope/micronaut/properties/ModelProperties.java:46–48
基于官方固定版本源码静态生成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.