AS AgentScopeAPI 手册 / API Reference

ChatCompletionsProperties

@ConfigurationProperties(prefix = "agentscope.chat-completions") public class ChatCompletionsProperties
源码Source io/agentscope/spring/boot/chat/config/ChatCompletionsProperties.java:34–58

聊天补全属性,承载智能体的部署、调度与服务化运行。位于 io.agentscope.spring.boot.chat.config 包。核心成员包括 isEnabled、setEnabled、getBasePath、setBasePath。

Configuration properties for the Chat Completions Web Starter.

Example configuration:

`agentscope:
chat-completions:
enabled: true
base-path: /v1/chat/completions
session-manager:
type: in-memory # Options: in-memory, redis, mysql (future)
`

方法摘要Method Summary

方法Method说明Description
public boolean isEnabled()
判断是否已启用。
Returns whether the enabled.
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.
public String getBasePath()
获取基类路径。
Returns the base path.
public void setBasePath(String basePath)
设置基类路径。
Sets the base path.

方法详情Method Detail

isEnabled

public boolean isEnabled()

判断是否已启用。

Returns whether the enabled.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/spring/boot/chat/config/ChatCompletionsProperties.java:43–45

setEnabled

public void setEnabled(boolean enabled)

设置已启用。

Sets the enabled.

参数Parameters
名称Name类型Type说明Description
enabledboolean已启用(类型 `boolean`)。The enabled.
源码Source io/agentscope/spring/boot/chat/config/ChatCompletionsProperties.java:47–49

getBasePath

public String getBasePath()

获取基类路径。

Returns the base path.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/spring/boot/chat/config/ChatCompletionsProperties.java:51–53

setBasePath

public void setBasePath(String basePath)

设置基类路径。

Sets the base path.

参数Parameters
名称Name类型Type说明Description
basePathString基类路径(类型 `String`)。The base path.
源码Source io/agentscope/spring/boot/chat/config/ChatCompletionsProperties.java:55–57
基于官方固定版本源码静态生成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.