Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Oct 8, 2024
1 parent 7e404f1 commit 987c19a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/agentscope/rpc/retry_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ class RetryFixedTimes(RetryBase):
Retry a fixed number of times, and wait a fixed delay time between each attempt.
Init dict format:
type: 'fixed'
max_retries (`int`): The max retry times
delay (`float`): The delay time between each attempt
- type: 'fixed'
- max_retries (`int`): The max retry times
- delay (`float`): The delay time between each attempt
.. code-block:: python
Expand Down Expand Up @@ -89,11 +90,12 @@ class RetryExpential(RetryBase):
Retry with exponential backoff, which means the delay time will increase exponentially.
Init dict format:
type: 'expential'
max_retries (`int`): The max retry times
base_delay (`float`): The base delay time
max_delay (`float`): The max delay time, which will be used if the calculated delay time
exceeds it.
- type: 'expential'
- max_retries (`int`): The max retry times
- base_delay (`float`): The base delay time
- max_delay (`float`): The max delay time, which will be used if the calculated delay time
- exceeds it.
.. code-block:: python
Expand Down

0 comments on commit 987c19a

Please sign in to comment.