JevProperties
@ConfigurationProperties(prefix = "agentscope.jev") public class JevProperties
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:24–118Jev 属性,对智能体行为进行评测、追踪与可观测性分析。位于 io.agentscope.spring.boot.jev 包。核心成员包括 isEnabled、setEnabled、getApiKey、setApiKey、getBaseUrl、setBaseUrl。
Jev decision model settings.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Retry | 类class | 重试,对智能体行为进行评测、追踪与可观测性分析。 Retry policy settings. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public boolean isEnabled() | 判断是否已启用。 Returns whether the enabled. |
public void setEnabled(boolean enabled) | 设置已启用。 Sets the enabled. |
public String getApiKey() | 获取API 键。 Returns the api key. |
public void setApiKey(String apiKey) | 设置API 键。 Sets the api key. |
public String getBaseUrl() | 获取基类 URL。 Returns the base url. |
public void setBaseUrl(String baseUrl) | 设置基类 URL。 Sets the base url. |
public String getModel() | 获取模型。 Returns the model. |
public void setModel(String model) | 设置模型。 Sets the model. |
public Duration getTimeout() | 获取超时。 Returns the timeout. |
public void setTimeout(Duration timeout) | 设置超时。 Sets the timeout. |
public Retry getRetry() | 获取重试。 Returns the retry. |
public void setRetry(Retry retry) | 设置重试。 Sets the retry. |
方法详情Method Detail
isEnabled
public boolean isEnabled()
判断是否已启用。
Returns whether the enabled.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:45–47setEnabled
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enabled | boolean | 已启用(类型 `boolean`)。The enabled. |
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:49–51getApiKey
public String getApiKey()
获取API 键。
Returns the api key.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:53–55setApiKey
public void setApiKey(String apiKey)
设置API 键。
Sets the api key.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
apiKey | String | API 键(类型 `String`)。The api key. |
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:57–59getBaseUrl
public String getBaseUrl()
获取基类 URL。
Returns the base url.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:61–63setBaseUrl
public void setBaseUrl(String baseUrl)
设置基类 URL。
Sets the base url.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
baseUrl | String | 基类 URL(类型 `String`)。The base url. |
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:65–67getModel
public String getModel()
获取模型。
Returns the model.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:69–71setModel
public void setModel(String model)
设置模型。
Sets the model.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
model | String | 模型实例(类型 `String`)。The model. |
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:73–75getTimeout
public Duration getTimeout()
获取超时。
Returns the timeout.
Duration返回时长。Returns duration.
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:77–79setTimeout
public void setTimeout(Duration timeout)
设置超时。
Sets the timeout.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
timeout | Duration | 超时时间(类型 `Duration`)。The timeout. |
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:81–83getRetry
public Retry getRetry()
获取重试。
Returns the retry.
Retry返回重试。Returns retry.
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:85–87setRetry
public void setRetry(Retry retry)
设置重试。
Sets the retry.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
retry | Retry | 重试(类型 `Retry`)。The retry. |
源码Source
io/agentscope/spring/boot/jev/JevProperties.java:89–91嵌套类详情Nested Class Detail
Retry
public static class Retry重试,对智能体行为进行评测、追踪与可观测性分析。位于 io.agentscope.spring.boot.jev 包。核心成员包括 getMaxRetries、setMaxRetries、getInitialBackoff、setInitialBackoff。
Retry policy settings.