# 1. Install the SDK
pip install platools
# or: npm install @platools/sdk (TypeScript, coming soon)
# 2. Decorate a function
cat > example.py <<'EOF'
from platools import tool
from pydantic import BaseModel
class FlightIn(BaseModel):
pnr: str
last_name: str
@tool(name="get_flight_details", description="Look up a flight by PNR")
def get_flight_details(args: FlightIn) -> dict:
return {"flight_number": "BA245", "gate": "B42"}
EOF
# 3. Run the SDK doctor + test
platools doctor example.py # lints schema, auth, and output shape
platools test example.py # runs the test harness
# 4. Ship it - deploy the whole platform with one command
curl -fsSL https://get.platos.dev | sh # (or git clone + make up)