-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): enable update registration policy after agent init (#561)
- Loading branch information
Showing
6 changed files
with
1,270 additions
and
1,068 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<a id="src.uagents.registration"></a> | ||
|
||
# src.uagents.registration | ||
|
||
<a id="src.uagents.registration.generate_backoff_time"></a> | ||
|
||
#### generate`_`backoff`_`time | ||
|
||
```python | ||
def generate_backoff_time(retry: int) -> float | ||
``` | ||
|
||
Generate a backoff time starting from 0.128 seconds and limited to ~131 seconds | ||
|
||
<a id="src.uagents.registration.coerce_metadata_to_str"></a> | ||
|
||
#### coerce`_`metadata`_`to`_`str | ||
|
||
```python | ||
def coerce_metadata_to_str( | ||
metadata: Optional[Dict[str, Any]] | ||
) -> Optional[Dict[str, Union[str, Dict[str, str]]]] | ||
``` | ||
|
||
Step through the metadata and convert any non-string values to strings. | ||
|
Oops, something went wrong.