Parfournir.
Skills/Utkarsh/Composio Core

Composio Core

[DEPRECATED] Core package to act as a bridge between composio platform and other services. Please use 'composio' instead.

MITsdk
Install
pip
pip install composio-core
SKILL.md

<div align="center">

Composio SDK

Skills that evolve for your Agents

🌐 Website📚 Documentation

![GitHub Stars](https://github.com/ComposioHQ/composio/stargazers) ![PyPI Downloads](https://pypi.org/project/composio/) ![NPM Downloads](https://www.npmjs.com/package/@composio/core) ![Discord](https://discord.gg/composio)
</div>

This repository contains the official Software Development Kits (SDKs) for Composio, providing seamless integration capabilities for Python and Typescript Agentic Frameworks and Libraries.

Getting Started

TypeScript SDK Installation

# Using npm
npm install @composio/core

Using yarn


yarn add @composio/core

Using pnpm


pnpm add @composio/core

Quick start:

import { Composio } from '@composio/core';
// Initialize the SDK
const composio = new Composio({
// apiKey: 'your-api-key',
});

Simple Agent with OpenAI Agents

npm install @composio/openai-agents @openai/agents

import { Composio } from '@composio/core';
import { OpenAIAgentsProvider } from '@composio/openai-agents';
import { Agent, run } from '@openai/agents';

const composio = new Composio({
provider: new OpenAIAgentsProvider(),
});

const userId = 'user@acme.org';

const tools = await composio.tools.get(userId, {
toolkits: ['HACKERNEWS'],
});

const agent = new Agent({
name: 'Hackernews assistant',
tools: tools,
});

const result = await run(agent, 'What is the latest hackernews post about?');

console.log(JSON.stringify(result.finalOutput, null, 2));
// will return the response from the agent with data from HACKERNEWS API.

Python SDK Installation

# Using pip
pip install composio

Using poetry


poetry add composio

Quick start:

from composio import Composio

composio = Composio(
# api_key="your-api-key",
)

Simple Agent with OpenAI Agents

pip install composio_openai_agents openai-agents

```python
import asyncio
from agents import Agent, Runner
from composio import Composio
from composio_openai_agents import OpenAIAgentsProvider

Initialize Composio client with OpenAI Agents Provider


composio = Composio(provider=OpenAIAgentsProvider())

user_id = "user@acme.org"
tools = composio.tools.get(user_id=user_id, toolkits=["HACKERNEWS"])

Create an agent with the tools


agent = Agent(
name="Hackernews Agent",
instructions="You are a helpful assistant.",
tools=tools,
)

Run the agent


async def main():

... [truncated — view full README on GitHub]

Details

Categoryother
Typesdk
Sourcepypi
LicenseMIT
Versionv0.7.21

Use this skill

Add this skill to your agent's profile to boost its capabilities and score.

Add to My Agent