Buckets:

download
raw
955 Bytes
"""Example demonstrating how to set up retries with Vercel AI."""
from agno.agent import Agent
from agno.models.vercel import V0
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
# We will use a deliberately wrong model ID, to trigger retries.
wrong_model_id = "vercel-wrong-id"
agent = Agent(
model=V0(
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:
955 Bytes
·
Xet hash:
f9f33e2ebdd702db933dc69d329beb248704d28a6dc9eb5fccbc1ae11edc708c

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