Buckets:

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

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