import asyncio
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from mirage import MountMode, RAMVFS, Workspace
from mirage.agents.agno import MirageToolkit
ws = Workspace({"/data": RAMVFS()}, mode=MountMode.WRITE)
agent = Agent(
model=OpenAIResponses(id="gpt-6.1-sol"),
tools=[MirageToolkit(ws)],
instructions="Use the shell tools to explore and read files.",
markdown=True,
)
async def main() -> None:
await ws.shell('echo "hello from mirage" | tee /data/hello.txt')
await agent.aprint_response(
"List all files under /data and show the contents of each one.")
await ws.close()
asyncio.run(main())