Buckets:

download
raw
997 Bytes
"""
MiniMax Basic
=============
Cookbook example for `minimax/basic.py`.
"""
import asyncio
from agno.agent import Agent
from agno.models.minimax import MiniMax
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
agent = Agent(model=MiniMax(id="MiniMax-M3"), markdown=True)
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
# --- Sync ---
agent.print_response("Share a 2 sentence horror story.")
# --- Sync + Streaming ---
agent.print_response("Share a 2 sentence horror story.", stream=True)
# --- Async ---
asyncio.run(agent.aprint_response("Share a 2 sentence horror story."))
# --- Async + Streaming ---
asyncio.run(agent.aprint_response("Share a 2 sentence horror story.", stream=True))

Xet Storage Details

Size:
997 Bytes
·
Xet hash:
6164b2319dab659f337b971f0a4cf19ce3d3380daec43ec2283dea695f90eb43

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