Buckets:

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

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