Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 924 Bytes

File metadata and controls

35 lines (25 loc) · 924 Bytes

Quickstart Example

The fastest way to get started with Agent OS.

Run the Example

# From the repo root
python examples/quickstart/my_first_agent.py

What it Does

from agent_os import KernelSpace

# Create kernel with strict policy
kernel = KernelSpace(policy="strict")

@kernel.register
async def my_first_agent(task: str):
    """A simple agent that processes tasks safely."""
    result = f"Processed: {task}"
    return result

# Execute with kernel-level safety
result = asyncio.run(kernel.execute(my_first_agent, "Hello Agent OS!"))

Next Steps