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.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/spring/boot/chat/config/ChatCompletionsProperties.java:43–45setEnabled
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enabled | boolean | 已启用(类型 `boolean`)。The enabled. |
源码Source
io/agentscope/spring/boot/chat/config/ChatCompletionsProperties.java:47–49getBasePath
public String getBasePath()
获取基类路径。
Returns the base path.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/spring/boot/chat/config/ChatCompletionsProperties.java:51–53setBasePath
public void setBasePath(String basePath)
设置基类路径。
Sets the base path.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
basePath | String | 基类路径(类型 `String`)。The base path. |
源码Source
io/agentscope/spring/boot/chat/config/ChatCompletionsProperties.java:55–57