Skip to main content

Overview

The OpenAI Agents SDK lets you build agents with custom tools, handoffs, and guardrails. You can create Laso Finance tools that give your agent the ability to order cards via x402.

Prerequisites

  • Python 3.10+
  • A funded agent wallet with USDC on Base or Solana (Locus, Sponge, or Ampersend)
  • openai-agents installed

Setup

1. Install dependencies

2. Define Laso Finance tools

3. Create the agent

4. Run it

Multi-agent handoff

For complex workflows, use handoffs to delegate between specialized agents:

Guardrails

Add guardrails to prevent accidental overspending:

OpenAI Agents SDK

Official SDK documentation and examples.