Skip to content

Add OpenAI Agents SDK tool integration #5

@0xtus

Description

@0xtus

Description

Create an adapter that wraps AzethKit methods as OpenAI Agents SDK function tools, enabling OpenAI-powered agents to use Azeth for payments, service discovery, and reputation.

Why

The OpenAI Agents SDK is rapidly growing. Providing a first-class integration lets OpenAI agent developers add economic capabilities without learning a new framework.

Example

import { AzethKit } from '@azeth/sdk';
import { Agent } from '@openai/agents';

const azeth = await AzethKit.create({ privateKey: '0x...', chain: 'baseSepolia' });

const agent = new Agent({
  tools: azeth.asOpenAITools(), // Returns OpenAI-compatible function tools
});

Scope

  • Wrap key methods as OpenAI function tool definitions
  • Handle tool call routing back to AzethKit
  • Example showing an OpenAI agent paying for services

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions