Skip to content

Latest commit

 

History

History

README.md

OpenAI Agents SDK for Typescript + Trigger.dev playground

ℹ️ Note: This is a v4 project. If you are using v3 and want to upgrade, please refer to our v4 upgrade guide.

Get hands-on with AI agents by exploring 7 production-ready patterns built with the OpenAI Agents SDK and Trigger.dev. Clone this repo to experiment with everything from basic calls to workflows with tools, streaming, guardrails, handoffs, and more.

By combining the OpenAI Agents SDK with Trigger.dev, you can create durable agents that can be deployed to production and scaled to any size, with retries, queues, and full observability built-in.

handoff-agent.mp4

Tech stack

Agent tasks

Getting started

  1. After cloning the repo, run npm install to install the dependencies.
  2. Set up your environment variables (see .env.example)
  3. If you haven't already, sign up for a free Trigger.dev account here and create a new project.
  4. Copy the project ref from the Trigger.dev dashboard and add it to the trigger.config.ts file.
  5. In your terminal, run the Trigger.dev dev CLI command with npx trigger.dev@v4-beta dev.

Now you should be able to visit your Trigger.dev dashboard and test any of the agent tasks with the example payloads provided in each task file.

Testing

Use the Trigger.dev dashboard to test each task:

  1. Navigate to your project dashboard
  2. Select any task from the list
  3. Click "Test"
  4. Use the example payload from the task file comments
  5. Run and observe the results in real-time

Relevant code

Learn More

To learn more about the technologies used in this project, check out the following resources: