Buckets:

download
raw
985 Bytes
"""Example demonstrating how to set up retries with SiliconFlow."""
from agno.agent import Agent
from agno.models.siliconflow import SiliconFlow
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
# We will use a deliberately wrong model ID, to trigger retries.
wrong_model_id = "siliconflow-wrong-id"
agent = Agent(
model=SiliconFlow(
id=wrong_model_id,
retries=3, # Number of times to retry the request.
delay_between_retries=1, # Delay between retries in seconds.
exponential_backoff=True, # If True, the delay between retries is doubled each time.
),
)
agent.print_response("What is the capital of France?")
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
pass

Xet Storage Details

Size:
985 Bytes
·
Xet hash:
f99bc499e3dd648e20c016c3a2b7dab65c9f6f9cddf817c5a788d18d9f150b3e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.