-
Notifications
You must be signed in to change notification settings - Fork 0
Add OpenAI Agents SDK tool integration #5
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed