Tailrace
Guides

OpenAI Agents SDK

Wrap @openai/agents function tools with Tailrace.

See the repo guide: wrap function tools so args and results pass policy at the tool boundary.

import { createTailrace } from "@tailrace/core";
import { wrapTools } from "@tailrace/openai-agents";
import { tool } from "@openai/agents";
import { z } from "zod";

const crm = tool({
  name: "crm",
  description: "Lookup",
  parameters: z.object({ email: z.string() }),
  execute: async ({ email }) => ({ email }),
});

const tools = wrapTools(createTailrace(), [crm], { agent: "support" });

Full write-up: integrations/openai-agents and reference.

Limitations: function tools only; hosted tools and model-boundary wrap are out of scope for M7.