AS AgentScopeAPI 手册 / API Reference

Retry

public static class Retry
源码Source io/agentscope/spring/boot/jev/JevProperties.java:94–117

重试,对智能体行为进行评测、追踪与可观测性分析。位于 io.agentscope.spring.boot.jev 包。核心成员包括 getMaxRetries、setMaxRetries、getInitialBackoff、setInitialBackoff。

Retry policy settings.

方法摘要Method Summary

方法Method说明Description
public Integer getMaxRetries()
获取最大重试。
Returns the max retries.
public void setMaxRetries(Integer maxRetries)
设置最大重试。
Sets the max retries.
public Duration getInitialBackoff()
获取 `getInitialBackoff`。
Returns the initial backoff.
public void setInitialBackoff(Duration initialBackoff)
设置 `setInitialBackoff`。
Sets the initial backoff.

方法详情Method Detail

getMaxRetries

public Integer getMaxRetries()

获取最大重试。

Returns the max retries.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/spring/boot/jev/JevProperties.java:102–104

setMaxRetries

public void setMaxRetries(Integer maxRetries)

设置最大重试。

Sets the max retries.

参数Parameters
名称Name类型Type说明Description
maxRetriesInteger最大重试(类型 `Integer`)。The max retries.
源码Source io/agentscope/spring/boot/jev/JevProperties.java:106–108

getInitialBackoff

public Duration getInitialBackoff()

获取 getInitialBackoff。

Returns the initial backoff.

返回Returns Duration
返回时长。Returns duration.
源码Source io/agentscope/spring/boot/jev/JevProperties.java:110–112

setInitialBackoff

public void setInitialBackoff(Duration initialBackoff)

设置 setInitialBackoff。

Sets the initial backoff.

参数Parameters
名称Name类型Type说明Description
initialBackoffDurationinitial 退避(类型 `Duration`)。The initial backoff.
源码Source io/agentscope/spring/boot/jev/JevProperties.java:114–116
基于官方固定版本源码静态生成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.