Buckets:

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

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