
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@composio/openai-agents
Advanced tools
The OpenAI Agents API provider for Composio SDK, providing seamless integration with OpenAI's Agents API and tools.
The OpenAI Agents API provider for Composio SDK, providing seamless integration with OpenAI's Agents API and tools.
npm install @composio/openai-agents @openai/agents
# or
yarn add @composio/openai-agents @openai/agents
# or
pnpm add @composio/openai-agents @openai/agents
Required environment variables:
COMPOSIO_API_KEY: Your Composio API keyOPENAI_API_KEY: Your OpenAI API keyimport { OpenAIAgentsProvider } from '@composio/openai-agents';
import { Composio } from '@composio/core';
import { Agent, run } from '@openai/agents';
const composio = new Composio({
provider: new OpenAIAgentsProvider(),
});
// Fetch tools from Composio
const tools = await composio.tools.get('default', 'HACKERNEWS_GET_USER', {
beforeExecute: async (toolSlug, toolkitSlug, params) => {
console.log(`🔄 Executing tool ${toolSlug} from toolkit ${toolkitSlug}...`);
return params;
},
afterExecute: async (toolSlug, toolkitSlug, result) => {
console.log(`âś… Tool ${toolSlug} executed`);
return result;
},
});
// Create an agent with the tools
const agent = new Agent({
name: 'Hackernews assistant',
tools: tools,
});
// Run the agent with a query
const result = await run(agent, 'Tell me about the user `pg` in hackernews');
The OpenAI Agents provider can be configured with various options:
const provider = new OpenAIAgentsProvider({
strict: true, // Enable strict mode for tool parameters
});
For more information about OpenAI Agents and how to use them, see:
FAQs
The OpenAI Agents API provider for Composio SDK, providing seamless integration with OpenAI's Agents API and tools.
We found that @composio/openai-agents demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.