@devries-cameron20 / composio-1 / commits / b7e675381
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Update github workflow to only build

haxzie committed Apr 22, 2025 at 11:49 UTC b7e67538134dcf6e9922871c6a56fd14e661e813
2 files changed +71 -29
.github/workflows/ci.yml
+2 -29
@@ -6,34 +6,10 @@ on:
6 pull_request:
7
8 jobs:
9 - install:
10 - name: Install Dependencies
9 + build:
10 + name: Build
11 runs-on: ubuntu-latest
12
13 - steps:
14 - - name: Checkout Code
15 - uses: actions/checkout@v3
16 -
17 - # Enable PNPM with correct version
18 - - name: Setup PNPM
19 - uses: pnpm/action-setup@v2
20 - with:
21 - version: 10.8.0 # Match the version in package.json
22 -
23 - - name: Set up Node.js
24 - uses: actions/setup-node@v3
25 - with:
26 - node-version: '20'
27 - cache: 'pnpm'
28 -
29 - - name: Install Dependencies
30 - run: pnpm install --frozen-lockfile
31 -
32 - build-and-test:
33 - name: Build & Test
34 - runs-on: ubuntu-latest
35 - needs: install
36 -
13 steps:
14 - name: Checkout Code
15 uses: actions/checkout@v3
@@ -54,6 +30,3 @@ jobs:
30
31 - name: Run Build
32 run: pnpm turbo run build
57 -
58 - - name: Run Tests
59 - run: pnpm turbo run test
examples/vercel/README.md new
+69
@@ -0,0 +1,69 @@
1 +# Vercel Example with Composio SDK
2 +
3 +This example demonstrates how to use the Composio SDK with Vercel's AI SDK to create an AI-powered application that can interact with HackerNews data.
4 +
5 +## Features
6 +
7 +- Integration with Composio SDK and Vercel AI SDK
8 +- HackerNews front page summarization using GPT-4
9 +- Streaming AI responses
10 +- TypeScript support
11 +
12 +## Prerequisites
13 +
14 +- [Node.js](https://nodejs.org/) (Latest LTS version recommended)
15 +- [pnpm](https://pnpm.io/) (v10.8.0 or later)
16 +- Composio API Key
17 +- OpenAI API Key
18 +
19 +## Getting Started
20 +
21 +1. Clone the repository and navigate to the example directory:
22 +```bash
23 +cd examples/vercel
24 +```
25 +
26 +2. Install dependencies:
27 +```bash
28 +pnpm install
29 +```
30 +
31 +3. Copy the `.env.example` file to `.env` and fill in your API keys:
32 +```bash
33 +cp .env.example .env
34 +```
35 +
36 +4. Update the `.env` file with your credentials:
37 +```env
38 +COMPOSIO_API_KEY=your_composio_api_key
39 +OPENAI_API_KEY=your_openai_api_key
40 +```
41 +
42 +5. Start the development server:
43 +```bash
44 +pnpm start
45 +```
46 +
47 +## How It Works
48 +
49 +This example showcases how to:
50 +1. Initialize the Composio SDK with the Vercel toolset
51 +2. Use the HackerNews tool to fetch front page data
52 +3. Generate AI responses using OpenAI's GPT-4
53 +4. Handle tool calls and results in a chat-like interface
54 +
55 +## Dependencies
56 +
57 +- `@composio/core`: Core Composio SDK
58 +- `@composio/vercel`: Vercel integration for Composio
59 +- `@ai-sdk/openai`: OpenAI integration
60 +- `ai`: Vercel's AI SDK
61 +- TypeScript for type safety
62 +
63 +## License
64 +
65 +ISC
66 +
67 +## Support
68 +
69 +For questions and support, please refer to the [Composio documentation](https://docs.composio.dev) or open an issue in the repository.
\ No newline at end of file