Buckets:

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

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