Skip to content

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

Feat: Add LlamaIndex provider for TS SDK (#2029)

Musthaq Ahamadea84142ae588
diff --git a/.changeset/tough-trains-listen.md b/.changeset/tough-trains-listen.md
new file mode 100644
index 000000000..87170ff0a
--- /dev/null
+++ b/.changeset/tough-trains-listen.md
@@ -0,0 +1,5 @@
+---
+'@composio/llamaindex': patch
+---
+
+Add Llamaindex provider for TS
diff --git a/fern/package.json b/fern/package.json
index 4b7731d05..c11a16358 100644
--- a/fern/package.json
+++ b/fern/package.json
@@ -44,11 +44,14 @@
"@composio/core": "workspace:*",
"@composio/google": "workspace:*",
"@composio/langchain": "workspace:*",
+ "@composio/llamaindex": "workspace:*",
"@composio/openai": "workspace:*",
"@composio/vercel": "workspace:*",
"@google/genai": "^1.1.0",
"@langchain/langgraph": "^0.2.72",
"@langchain/openai": "^0.5.10",
+ "@llamaindex/openai": "^0.4.20",
+ "@llamaindex/workflow": "^1.1.24",
"@types/convict": "^6.1.6",
"@types/glob": "^8.1.0",
"@types/node": "^20.17.57",
diff --git a/fern/pages/src/providers/llamaindex.mdx b/fern/pages/src/providers/llamaindex.mdx
index c25eb9711..5de7a19f6 100644
--- a/fern/pages/src/providers/llamaindex.mdx
+++ b/fern/pages/src/providers/llamaindex.mdx
@@ -13,6 +13,9 @@ The LlamaIndex Provider transforms Composio tools into a format compatible with
```bash title="Python" for="python"
pip install composio_llamaindex==0.8.0 llama-index
```
+```bash title="TypeScript" for="typescript"
+npm install @composio/llamaindex @llamaindex/openai @llamaindex/workflow
+```
</CodeGroup>
## Usage
@@ -22,4 +25,19 @@ pip install composio_llamaindex==0.8.0 llama-index
src="fern/snippets/providers/python/llamaindex-provider.py"
title="Python"
/>
+<SnippetCode
+ src="fern/snippets/providers/typescript/llamaindex-provider.ts"
+ title="TypeScript"
+/>
+</CodeGroup>
+
+## Advanced Usage
+
+### Streaming Agent with Multiple Toolkits
+
+<CodeGroup>
+<SnippetCode
+ src="fern/snippets/providers/typescript/llamaindex-streaming.ts"
+ title="TypeScript"
+/>
</CodeGroup>
\ No newline at end of file
diff --git a/fern/snippets/providers/typescript/llamaindex-provider.ts b/fern/snippets/providers/typescript/llamaindex-provider.ts
new file mode 100644
index 000000000..c79057b0f
--- /dev/null
+++ b/fern/snippets/providers/typescript/llamaindex-provider.ts
@@ -0,0 +1,36 @@
+import { Composio } from '@composio/core';
+import { LlamaindexProvider } from '@composio/llamaindex';
+import { openai } from '@llamaindex/openai';
+import { agent } from '@llamaindex/workflow';
+import 'dotenv/config';
+
+// Initialize Composio with LlamaIndex provider
+const composio = new Composio({
+ apiKey: process.env.COMPOSIO_API_KEY,
+ provider: new LlamaindexProvider(),
+});
+
+async function main() {
+ // Get tools
+ const tools = await composio.tools.get('[email protected]', {
+ tools: ['GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER'],
+ });
+
+ // Create LlamaIndex agent with Composio tools
+ const githubAgent = agent({
+ name: 'GitHub Agent',
+ description: 'An agent that performs GitHub actions',
+ llm: openai({ model: 'gpt-4o-mini' }),
+ systemPrompt: 'You are an agent that performs github actions.',
+ tools,
+ });
+
+ // Run the agent
+ const result = await githubAgent.run(
+ 'Hello! I would like to star a repo composiohq/composio on GitHub'
+ );
+
+ console.log(result);
+}
+
+main().catch(console.error);
diff --git a/fern/snippets/providers/typescript/llamaindex-streaming.ts b/fern/snippets/providers/typescript/llamaindex-streaming.ts
new file mode 100644
index 000000000..2591959b6
--- /dev/null
+++ b/fern/snippets/providers/typescript/llamaindex-streaming.ts
@@ -0,0 +1,53 @@
+import { Composio } from '@composio/core';
+import { LlamaindexProvider } from '@composio/llamaindex';
+import { openai } from '@llamaindex/openai';
+import { agent, agentStreamEvent } from '@llamaindex/workflow';
+import 'dotenv/config';
+
+const composio = new Composio({
+ apiKey: process.env.COMPOSIO_API_KEY,
+ provider: new LlamaindexProvider(),
+});
+
+async function streamingExample() {
+ // Get tools from multiple toolkits with execution modifiers
+ const tools = await composio.tools.get(
+ 'default',
+ {
+ toolkits: ['gmail', 'googlecalendar', 'slack'],
+ limit: 20,
+ },
+ {
+ beforeExecute: ({ toolSlug, params }) => {
+ console.log(`πŸ”„ Executing ${toolSlug} with:`, params);
+ return params;
+ },
+ afterExecute: ({ toolSlug, result }) => {
+ console.log(`βœ… ${toolSlug} completed:`, result);
+ return result;
+ },
+ }
+ );
+
+ // Create streaming agent
+ const assistantAgent = agent({
+ name: 'Personal Assistant',
+ description: 'A helpful personal assistant',
+ llm: openai({ model: 'gpt-4o-mini' }),
+ systemPrompt: 'You are a helpful personal assistant that can manage emails, calendar events, and slack messages.',
+ tools,
+ });
+
+ // Stream the response
+ const stream = await assistantAgent.runStream(
+ 'Schedule a meeting for tomorrow at 2 PM and send a slack message about it'
+ );
+
+ for await (const event of stream) {
+ if (agentStreamEvent.include(event)) {
+ process.stdout.write(event.data.delta);
+ }
+ }
+}
+
+streamingExample().catch(console.error);
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a569a57a3..161d77360 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -110,7 +110,7 @@ importers:
devDependencies:
'@ai-sdk/anthropic':
specifier: ^1.2.12
- version: 1.2.12([email protected])
+ version: 1.2.12([email protected])
'@anthropic-ai/sdk':
specifier: ^0.52.0
version: 0.52.0
@@ -123,6 +123,9 @@ importers:
'@composio/langchain':
specifier: workspace:*
version: link:../ts/packages/providers/langchain
+ '@composio/llamaindex':
+ specifier: workspace:*
+ version: link:../ts/packages/providers/llamaindex
'@composio/openai':
specifier: workspace:*
version: link:../ts/packages/providers/openai
@@ -134,10 +137,16 @@ importers:
version: 1.19.0(@modelcontextprotocol/[email protected])
'@langchain/langgraph':
specifier: ^0.2.72
'@langchain/openai':
specifier: ^0.5.10
+ '@llamaindex/openai':
+ specifier: ^0.4.20
+ version: 0.4.20(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])([email protected])
+ '@llamaindex/workflow':
+ specifier: ^1.1.24
'@types/convict':
specifier: ^6.1.6
version: 6.1.6
@@ -155,10 +164,10 @@ importers:
version: 1.9.7
ai:
specifier: 'catalog:'
- version: 5.0.44([email protected])
+ version: 5.0.44([email protected])
composio-core:
specifier: ^0.5.39
hono:
specifier: ^4.7.11
version: 4.8.0
@@ -173,7 +182,7 @@ importers:
version: 1.2.1
openai:
specifier: ^4.94.0
react:
specifier: ^18.3.1
version: 18.3.1
@@ -265,7 +274,7 @@ importers:
version: 5.9.2
vitest:
specifier: 'catalog:'
wrangler:
specifier: 'catalog:'
version: 4.37.1(@cloudflare/[email protected])
@@ -375,7 +384,7 @@ importers:
version: 16.5.0
zod-to-json-schema:
specifier: ^3.24.5
- version: 3.24.5([email protected])
+ version: 3.24.5([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -415,6 +424,34 @@ importers:
specifier: 'catalog:'
version: 5.9.2
+ ts/examples/llamaindex:
+ dependencies:
+ '@composio/core':
+ specifier: workspace:*
+ version: link:../../packages/core
+ '@composio/llamaindex':
+ specifier: workspace:*
+ version: link:../../packages/providers/llamaindex
+ '@llamaindex/openai':
+ specifier: ^0.4.20
+ version: 0.4.20(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])([email protected])
+ '@llamaindex/workflow':
+ specifier: ^1.1.24
+ dotenv:
+ specifier: ^16.4.1
+ version: 16.6.1
+ llamaindex:
+ specifier: ^0.12.0
+ devDependencies:
+ '@types/bun':
+ specifier: ^1.2.9
+ version: 1.2.16
+ typescript:
+ specifier: 'catalog:'
+ version: 5.9.2
+
ts/examples/mastra:
dependencies:
'@ai-sdk/openai':
@@ -450,7 +487,7 @@ importers:
dependencies:
'@ai-sdk/openai':
specifier: ^2.0.35
- version: 2.0.35([email protected])
+ version: 2.0.35([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -462,7 +499,7 @@ importers:
version: 1.18.0
ai:
specifier: 'catalog:'
- version: 5.0.44([email protected])
+ version: 5.0.44([email protected])
dotenv:
specifier: ^16.4.1
version: 16.6.1
@@ -478,7 +515,7 @@ importers:
dependencies:
'@ai-sdk/openai':
specifier: ^1.3.16
- version: 1.3.22([email protected])
+ version: 1.3.22([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -487,7 +524,7 @@ importers:
version: link:../../packages/providers/vercel
ai:
specifier: 'catalog:'
- version: 5.0.44([email protected])
+ version: 5.0.44([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -553,7 +590,7 @@ importers:
dependencies:
'@ai-sdk/openai':
specifier: ^1.3.16
- version: 1.3.22([email protected])
+ version: 1.3.22([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -562,7 +599,7 @@ importers:
version: link:../../packages/providers/vercel
ai:
specifier: 'catalog:'
- version: 5.0.44([email protected])
+ version: 5.0.44([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -581,10 +618,10 @@ importers:
version: 16.5.0
openai:
specifier: ^5.19.1
zod-to-json-schema:
specifier: ^3.24.5
- version: 3.24.5([email protected])
+ version: 3.24.5([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -613,7 +650,7 @@ importers:
dependencies:
'@ai-sdk/openai':
specifier: ^2.0.16
- version: 2.0.16([email protected])
+ version: 2.0.16([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -625,7 +662,7 @@ importers:
version: 1.18.0
ai:
specifier: 'catalog:'
- version: 5.0.44([email protected])
+ version: 5.0.44([email protected])
dotenv:
specifier: ^16.5.0
version: 16.5.0
@@ -748,7 +785,7 @@ importers:
version: 5.9.2
vitest:
specifier: 'catalog:'
ts/packages/core:
dependencies:
@@ -794,7 +831,7 @@ importers:
version: 5.9.2
vitest:
specifier: 'catalog:'
zod:
specifier: 'catalog:'
version: 3.25.76
@@ -830,7 +867,7 @@ importers:
version: 0.52.0
'@mastra/mcp':
specifier: ^0.12.0
devDependencies:
'@composio/core':
specifier: workspace:*
@@ -843,7 +880,7 @@ importers:
version: 5.9.2
vitest:
specifier: 'catalog:'
ts/packages/providers/cloudflare:
dependencies:
@@ -862,7 +899,7 @@ importers:
version: 5.9.2
vitest:
specifier: 'catalog:'
ts/packages/providers/google:
dependencies:
@@ -897,11 +934,27 @@ importers:
version: 5.9.2
vitest:
specifier: 'catalog:'
zod:
specifier: 'catalog:'
version: 3.25.76
+ ts/packages/providers/llamaindex:
+ dependencies:
+ llamaindex:
+ specifier: ^0.12.0
+ devDependencies:
+ '@composio/core':
+ specifier: workspace:*
+ version: link:../../core
+ tsup:
+ specifier: 'catalog:'
+ typescript:
+ specifier: 'catalog:'
+ version: 5.9.2
+
ts/packages/providers/mastra:
dependencies:
'@mastra/core':
@@ -922,7 +975,7 @@ importers:
version: 5.9.2
vitest:
specifier: ^3.1.4
zod:
specifier: 'catalog:'
version: 3.25.76
@@ -944,7 +997,7 @@ importers:
version: 5.9.2
vitest:
specifier: 'catalog:'
ts/packages/providers/openai-agents:
devDependencies:
@@ -962,7 +1015,7 @@ importers:
version: 5.9.2
vitest:
specifier: 'catalog:'
zod:
specifier: 'catalog:'
version: 3.25.76
@@ -983,7 +1036,7 @@ importers:
version: 5.9.2
vitest:
specifier: 'catalog:'
zod:
specifier: 'catalog:'
version: 3.25.76
@@ -1005,7 +1058,7 @@ importers:
vitest:
specifier: 'catalog:'
packages:
@@ -1121,6 +1174,17 @@ packages:
peerDependencies:
'@types/json-schema': ^7.0.15
+ '@aws-crypto/[email protected]':
+ resolution: {integrity: sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==}
+ engines: {node: '>=16.0.0'}
+
+ '@aws-crypto/[email protected]':
+ resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==}
+
+ '@aws-sdk/[email protected]':
+ resolution: {integrity: sha512-FfEM25hLEs4LoXsLXQ/q6X6L4JmKkKkbVFpKD4mwfVHtRVQG6QxJiCPcrkcPISquiy6esbwK2eh64TWbiD60cg==}
+ engines: {node: '>=18.0.0'}
+
resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==}
engines: {node: '>=6.9.0'}
@@ -1724,6 +1788,11 @@ packages:
resolution: {integrity: sha512-4SaFZCNfJqvk/kenHpI8xvN42DMaoycy4PzKc5otHxRswww1kAt82OlBuwRVLofCACCTZEcla2Ydxv8scMXaTg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ '@finom/[email protected]':
+ resolution: {integrity: sha512-fL656yBPiWebtfGItvtXLWrFNGlF1NcDFS0WdMQXMs9LluVg0CfT5E2oXYp0pidl0vVG53XkW55ysijNkU5/hA==}
+ peerDependencies:
+ zod: ^4.0.14
+
'@gerrit0/[email protected]':
resolution: {integrity: sha512-KaeJvPNofTEZR9EzVNp/GQzbQqkGfjiu6k3CXKvhVTX+8OoAKSX/k7qxLKOX3B0yh2XqVAc93rsOu48CGt2Qug==}
@@ -2204,6 +2273,63 @@ packages:
peerDependencies:
'@langchain/core': '>=0.2.21 <0.4.0'
+ '@llamaindex/[email protected]':
+ resolution: {integrity: sha512-/BXyemkvpxMaUhOkbwJ2PTvzKjSWkL8+6QLpz/n+pk8xBwMMe1GVBgli/J57gCyi8GbrlBafBj6GaPOgWub2Eg==}
+
+ '@llamaindex/[email protected]':
+ resolution: {integrity: sha512-y6kutMcCevzbmexUgz+HXf7KiZemzAoFEYSjAILfR+cG6FmYSF8XvLbGOB34Kx8mlRi7EI8rZXpezJ5qCqOyZg==}
+ peerDependencies:
+ '@huggingface/transformers': ^3.5.0
+ gpt-tokenizer: ^2.5.0
+ peerDependenciesMeta:
+ '@huggingface/transformers':
+ optional: true
+ gpt-tokenizer:
+ optional: true
+
+ '@llamaindex/[email protected]':
+ resolution: {integrity: sha512-uj5O89WShAAyiSZ8f8tU7hnLJ6pSmlY2a6hkAOs8odkUgT87dEqaPHpsK7w0iJdEFiob7GoLeRhv2K624FooXg==}
+ peerDependencies:
+ '@llamaindex/core': 0.6.22
+ '@llamaindex/env': 0.1.30
+ tree-sitter: ^0.22.0
+ web-tree-sitter: ^0.24.3
+
+ '@llamaindex/[email protected]':
+ resolution: {integrity: sha512-b2wTBkSELAszdJ6Eh2KrLHZvcDQ5UUotaThyNq76b22rYEBs2YOgVbbLUBXXWOLxkEHntVRt99ZcVtsOYlLg+w==}
+ peerDependencies:
+ '@llamaindex/core': 0.6.22
+ '@llamaindex/env': 0.1.30
+
+ '@llamaindex/[email protected]':
+ resolution: {integrity: sha512-WJIcD4K2suGbNkwU5CC70jKKrA5tARba42nMs8Pou1RGzmoxqg+K+b7vyLBmiDtImR8P40YLmkayCIRVQPBmsg==}
+ peerDependencies:
+ '@modelcontextprotocol/sdk': ^1.7.0
+ hono: ^4.7.4
+ next: ^15.2.2
+ p-retry: ^6.2.1
+ rxjs: ^7.8.2
+ zod: ^3.25.0 || ^4.0.0
+ peerDependenciesMeta:
+ '@modelcontextprotocol/sdk':
+ optional: true
+ hono:
+ optional: true
+ next:
+ optional: true
+ p-retry:
+ optional: true
+ rxjs:
+ optional: true
+ zod:
+ optional: true
+
+ '@llamaindex/[email protected]':
+ resolution: {integrity: sha512-VyKsbRkFlnT5dRNKbgLXQV+ZpQ+CAFgmC9LaZv6hD/fIKo6wq1wQW/ZqLZgZt569xeHgxmrXPB6KHdqn/AhPbQ==}
+ peerDependencies:
+ '@llamaindex/core': 0.6.22
+ '@llamaindex/env': 0.1.30
+
'@manypkg/[email protected]':
resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==}
@@ -3093,6 +3219,9 @@ packages:
cpu: [x64]
os: [win32]
+ '@selderee/[email protected]':
+ resolution: {integrity: sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==}
+
'@shikijs/[email protected]':
resolution: {integrity: sha512-nmOhIZ9yT3Grd+2plmW/d8+vZ2pcQmo/UnVwXMUXAKTXdi+LK0S08Ancrz5tQQPkxvjBalpMW2aKvwXfelauvA==}
@@ -3120,6 +3249,22 @@ packages:
resolution: {integrity: sha512-doH1gimEu3A46VX6aVxpHTeHrytJAG6HgdxntYnCFiIFHEM/ZGpG8KiZGBChchjQmG0XFIBL552kBTjVcMZXwQ==}
engines: {node: '>=12'}
+ '@smithy/[email protected]':
+ resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==}
+ engines: {node: '>=14.0.0'}
+
+ '@smithy/[email protected]':
+ resolution: {integrity: sha512-4lI9C8NzRPOv66FaY1LL1O/0v0aLVrq/mXP/keUa9mJOApEeae43LsLd2kZRUJw91gxOQfLIrV3OvqPgWz1YsA==}
+ engines: {node: '>=18.0.0'}
+
+ '@smithy/[email protected]':
+ resolution: {integrity: sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==}
+ engines: {node: '>=14.0.0'}
+
+ '@smithy/[email protected]':
+ resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==}
+ engines: {node: '>=14.0.0'}
+
'@speed-highlight/[email protected]':
resolution: {integrity: sha512-0dxmVj4gxg3Jg879kvFS/msl4s9F3T9UXC1InxgOf7t5NvcPD97u/WTA5vL/IxWHMn7qSxBozqrnnE2wvl1m8g==}
@@ -3195,6 +3340,9 @@ packages:
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==}
+
resolution: {integrity: sha512-AM9smvZN55Gzs2wRrqeMHVP7KE8KWgCJO/XL5yCly2xF6EKa4YlbpK+cLSAH4NG/Ah64HrlegmGqW8kYws7Vxg==}
@@ -3228,6 +3376,9 @@ packages:
resolution: {integrity: sha512-R4I/kzCYAdRLzfiCabn9hxWfbuHS573x+r0dJMkkzThEa7pbrcDWK+9zu3e7aBOouf+rQAciqPFMnxwr0aWgKg==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang==}
+
resolution: {integrity: sha512-kK1eBS/Adeyis+3OlBDMeQQuasIDLUYXsi2T15ccNJ0iyUpQ4xDF7svFu3+bGVrI0CMBUclPciz+lsQR3JX3TQ==}
@@ -3893,6 +4044,10 @@ packages:
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
+ resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==}
engines: {node: '>=18'}
@@ -3961,6 +4116,19 @@ packages:
resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
+ resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==}
+
+ resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==}
+
+ resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==}
+ engines: {node: '>= 4'}
+
+ resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==}
+
resolution: {integrity: sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==}
engines: {node: '>=12'}
@@ -4516,6 +4684,13 @@ packages:
resolution: {integrity: sha512-t4Te6ERzIaC48W3x4hJmBwgNlLhmiEdEE5ViYb02ffw4ignHNHa5IBtPjmbKstmtKa8X6C35iWwK4HaqvrzG9w==}
engines: {node: '>=16.9.0'}
+ resolution: {integrity: sha512-qY60FjREgVZL03vJU6IfMV4GDjGBIoOyvuFdpBDIX9yTlDw0TjxVBQp+P8NvpdIXNJvfWBTNul7fsAQJq2FNpg==}
+ engines: {node: '>=14'}
+
+ resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==}
+
resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==}
engines: {node: '>= 0.8'}
@@ -4875,6 +5050,9 @@ packages:
openai:
optional: true
+ resolution: {integrity: sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==}
+
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
engines: {node: '>= 0.8.0'}
@@ -4898,6 +5076,10 @@ packages:
resolution: {integrity: sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ==}
engines: {node: '>=18.0.0'}
+ resolution: {integrity: sha512-PoN3BMSr4F5h7ThQjXRZppyiCxuENIm/Set6hDk/DGLZrvIDgTuA2YSS29OSd2dXOQEtux5xGPl1d46nJ6w+Fw==}
+ engines: {node: '>=18.0.0'}
+
resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
@@ -4922,6 +5104,9 @@ packages:
resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==}
+ resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
+
resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==}
engines: {node: '>=18'}
@@ -4942,6 +5127,9 @@ packages:
resolution: {integrity: sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==}
+ resolution: {integrity: sha512-ThQLOhN86ZkJ7qemtVRGYM+gRgR8GEXNli9H/PMvpnZsE44Xfh3wx9kGJaldg314v85m+bFW6WBMaVHJc/c3zA==}
+
resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}
@@ -5132,6 +5320,10 @@ packages:
resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==}
+ resolution: {integrity: sha512-/bRZty2mXUIFY/xU5HLvveNHlswNJej+RnxBjOMkidWfwZzgTbPG1E3K5TOxRLOR+5hX7bSofy8yf1hZevMS8A==}
+ engines: {node: ^18 || ^20 || >= 21}
+
resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}
engines: {node: '>=10.5.0'}
@@ -5150,6 +5342,10 @@ packages:
resolution: {integrity: sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==}
hasBin: true
+ resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==}
+ hasBin: true
+
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
engines: {node: '>=0.10.0'}
@@ -5334,6 +5530,9 @@ packages:
resolution: {integrity: sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==}
+
resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==}
engines: {node: '>= 0.8'}
@@ -5382,6 +5581,9 @@ packages:
resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}
+
resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
@@ -5389,6 +5591,9 @@ packages:
resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==}
engines: {node: '>= 14.16'}
+ resolution: {integrity: sha512-XIxfHpEuSJbITd1H3EeQwpcZbTLHc+VVr8ANI9t5sit565tsI4/xK3KWTUFE2e6QiangUkh3B0jihzmGnNrRsQ==}
+
resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==}
@@ -5771,6 +5976,9 @@ packages:
resolution: {integrity: sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==}
hasBin: true
+ resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==}
+
resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==}
engines: {node: '>=10'}
@@ -6098,6 +6306,9 @@ packages:
resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}
hasBin: true
+ resolution: {integrity: sha512-usbHZP9/oxNsUY65MQUsduGRqDHQOou1cagUSwjhoSYAmSahjQDAVsh9s+SlZkn8X8+O1FULRGwHu7AFP3kjzg==}
+
resolution: {integrity: sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==}
engines: {node: '>=18.12'}
@@ -6251,6 +6462,9 @@ packages:
resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
+ resolution: {integrity: sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ==}
+
resolution: {integrity: sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==}
@@ -6388,6 +6602,9 @@ packages:
resolution: {integrity: sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-CdC/TqVFbXqR+C51v38hv6wOPatKEUGxa39scAeFSm98wIhZxAYonhRQPSMmfZ2w7JDI0zQDdzdmgtNk06/krQ==}
+
resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}
@@ -6574,11 +6791,11 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@ai-sdk/provider': 1.1.3
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- zod: 4.1.9
+ '@ai-sdk/provider-utils': 2.2.8([email protected])
+ zod: 3.25.76
dependencies:
@@ -6586,47 +6803,29 @@ snapshots:
'@ai-sdk/provider-utils': 3.0.7([email protected])
zod: 3.25.76
- dependencies:
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.7([email protected])
- zod: 4.1.9
-
dependencies:
'@ai-sdk/provider': 2.0.0
'@ai-sdk/provider-utils': 3.0.9([email protected])
zod: 3.25.76
- dependencies:
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.9([email protected])
- zod: 4.1.9
-
dependencies:
'@ai-sdk/provider': 1.1.3
'@ai-sdk/provider-utils': 2.2.8([email protected])
zod: 3.25.76
- dependencies:
- '@ai-sdk/provider': 1.1.3
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- zod: 4.1.9
-
dependencies:
'@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.4([email protected])
- zod: 4.1.9
+ '@ai-sdk/provider-utils': 3.0.4([email protected])
+ zod: 3.25.76
dependencies:
'@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.9([email protected])
- zod: 4.1.9
+ '@ai-sdk/provider-utils': 3.0.9([email protected])
+ zod: 3.25.76
dependencies:
@@ -6635,20 +6834,13 @@ snapshots:
secure-json-parse: 2.7.0
zod: 3.25.76
- dependencies:
- '@ai-sdk/provider': 1.1.3
- nanoid: 3.3.11
- secure-json-parse: 2.7.0
- zod: 4.1.9
-
dependencies:
'@ai-sdk/provider': 2.0.0
'@standard-schema/spec': 1.0.0
eventsource-parser: 3.0.3
- zod: 4.1.9
- zod-to-json-schema: 3.24.6([email protected])
+ zod: 3.25.76
+ zod-to-json-schema: 3.24.6([email protected])
dependencies:
@@ -6658,14 +6850,6 @@ snapshots:
zod: 3.25.76
zod-to-json-schema: 3.24.6([email protected])
- dependencies:
- '@ai-sdk/provider': 2.0.0
- '@standard-schema/spec': 1.0.0
- eventsource-parser: 3.0.6
- zod: 4.1.9
- zod-to-json-schema: 3.24.6([email protected])
-
dependencies:
'@ai-sdk/provider': 2.0.0
@@ -6673,13 +6857,6 @@ snapshots:
eventsource-parser: 3.0.6
zod: 3.25.76
- dependencies:
- '@ai-sdk/provider': 2.0.0
- '@standard-schema/spec': 1.0.0
- eventsource-parser: 3.0.6
- zod: 4.1.9
-
dependencies:
'@ai-sdk/provider': 2.0.0
@@ -6687,13 +6864,6 @@ snapshots:
eventsource-parser: 3.0.6
zod: 3.25.76
- dependencies:
- '@ai-sdk/provider': 2.0.0
- '@standard-schema/spec': 1.0.0
- eventsource-parser: 3.0.6
- zod: 4.1.9
-
'@ai-sdk/[email protected]':
dependencies:
json-schema: 0.4.0
@@ -6712,16 +6882,6 @@ snapshots:
optionalDependencies:
zod: 3.25.76
- dependencies:
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- '@ai-sdk/ui-utils': 1.2.11([email protected])
- react: 18.3.1
- swr: 2.3.3([email protected])
- throttleit: 2.1.0
- optionalDependencies:
- zod: 4.1.9
-
dependencies:
'@ai-sdk/provider': 1.1.3
@@ -6729,13 +6889,6 @@ snapshots:
zod: 3.25.76
zod-to-json-schema: 3.24.6([email protected])
- dependencies:
- '@ai-sdk/provider': 1.1.3
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- zod: 4.1.9
- zod-to-json-schema: 3.24.6([email protected])
-
'@alloc/[email protected]': {}
'@anthropic-ai/[email protected]': {}
@@ -6751,6 +6904,23 @@ snapshots:
'@types/json-schema': 7.0.15
js-yaml: 4.1.0
+ '@aws-crypto/[email protected]':
+ dependencies:
+ '@aws-crypto/util': 5.2.0
+ '@aws-sdk/types': 3.901.0
+ tslib: 2.8.1
+
+ '@aws-crypto/[email protected]':
+ dependencies:
+ '@aws-sdk/types': 3.901.0
+ '@smithy/util-utf8': 2.3.0
+ tslib: 2.8.1
+
+ '@aws-sdk/[email protected]':
+ dependencies:
+ '@smithy/types': 4.6.0
+ tslib: 2.8.1
+
dependencies:
'@babel/helper-validator-identifier': 7.27.1
@@ -6935,7 +7105,7 @@ snapshots:
devalue: 5.3.2
miniflare: 4.20250913.0
semver: 7.7.2
wrangler: 4.37.1(@cloudflare/[email protected])
zod: 3.25.76
transitivePeerDependencies:
@@ -7083,7 +7253,7 @@ snapshots:
dependencies:
effect: 3.16.16
dependencies:
@@ -7294,6 +7464,10 @@ snapshots:
'@eslint/core': 0.15.0
levn: 0.4.1
+ dependencies:
+ zod: 4.1.9
+
'@gerrit0/[email protected]':
dependencies:
'@shikijs/engine-oniguruma': 3.6.0
@@ -7671,23 +7845,6 @@ snapshots:
transitivePeerDependencies:
- openai
- dependencies:
- '@cfworker/json-schema': 4.1.1
- ansi-styles: 5.2.0
- camelcase: 6.3.0
- decamelize: 1.2.0
- js-tiktoken: 1.0.20
- mustache: 4.2.0
- p-queue: 6.6.2
- p-retry: 4.6.2
- uuid: 10.0.0
- zod: 3.25.76
- zod-to-json-schema: 3.24.6([email protected])
- transitivePeerDependencies:
- - openai
-
dependencies:
'@cfworker/json-schema': 4.1.1
@@ -7710,19 +7867,14 @@ snapshots:
uuid: 10.0.0
- dependencies:
- uuid: 10.0.0
-
dependencies:
'@types/json-schema': 7.0.15
p-queue: 6.6.2
p-retry: 4.6.2
uuid: 9.0.1
optionalDependencies:
react: 18.3.1
@@ -7736,15 +7888,15 @@ snapshots:
react: 18.3.1
react-dom: 19.1.0([email protected])
dependencies:
- '@langchain/langgraph-checkpoint': 0.0.18(@langchain/[email protected]([email protected]([email protected])([email protected])))
+ '@langchain/langgraph-checkpoint': 0.0.18(@langchain/[email protected]([email protected]([email protected])([email protected])))
uuid: 10.0.0
zod: 3.25.76
optionalDependencies:
- zod-to-json-schema: 3.24.6([email protected])
+ zod-to-json-schema: 3.24.6([email protected])
transitivePeerDependencies:
- react
@@ -7761,9 +7913,9 @@ snapshots:
- react
- react-dom
dependencies:
js-tiktoken: 1.0.20
zod: 3.25.32
@@ -7771,9 +7923,9 @@ snapshots:
- encoding
- ws
dependencies:
js-tiktoken: 1.0.21
zod: 3.25.76
@@ -7789,10 +7941,107 @@ snapshots:
transitivePeerDependencies:
- ws
+ dependencies:
+ js-tiktoken: 1.0.21
+
+ '@llamaindex/[email protected]':
+ dependencies:
+ '@finom/zod-to-json-schema': 3.24.11([email protected])
+ '@llamaindex/env': 0.1.30
+ '@types/node': 24.6.2
+ magic-bytes.js: 1.12.1
+ zod: 4.1.9
+ transitivePeerDependencies:
+ - '@huggingface/transformers'
+ - gpt-tokenizer
+
+ '@llamaindex/[email protected]':
dependencies:
+ '@aws-crypto/sha256-js': 5.2.0
js-tiktoken: 1.0.21
+ pathe: 1.1.2
+
+ dependencies:
+ '@llamaindex/core': 0.6.22
+ '@llamaindex/env': 0.1.30
+ html-to-text: 9.0.5
+ tree-sitter: 0.22.4
+ web-tree-sitter: 0.24.7
+
+ dependencies:
+ '@llamaindex/core': 0.6.22
+ '@llamaindex/env': 0.1.30
+ transitivePeerDependencies:
+ - ws
+ - zod
+
+ optionalDependencies:
+ '@modelcontextprotocol/sdk': 1.18.0
+ hono: 4.8.0
+ rxjs: 7.8.2
+ zod: 3.25.76
+
+ optionalDependencies:
+ '@modelcontextprotocol/sdk': 1.18.0
+ hono: 4.9.7
+ rxjs: 7.8.2
+ zod: 3.25.76
+
+ optionalDependencies:
+ '@modelcontextprotocol/sdk': 1.18.0
+ hono: 4.9.7
+ rxjs: 7.8.2
+ zod: 4.1.9
+
+ dependencies:
+ '@llamaindex/core': 0.6.22
+ '@llamaindex/env': 0.1.30
+ transitivePeerDependencies:
+ - '@modelcontextprotocol/sdk'
+ - hono
+ - next
+ - p-retry
+ - rxjs
+ - zod
+
+ dependencies:
+ '@llamaindex/core': 0.6.22
+ '@llamaindex/env': 0.1.30
+ transitivePeerDependencies:
+ - '@modelcontextprotocol/sdk'
+ - hono
+ - next
+ - p-retry
+ - rxjs
+ - zod
+
+ dependencies:
+ '@llamaindex/core': 0.6.22
+ '@llamaindex/env': 0.1.30
+ transitivePeerDependencies:
+ - '@modelcontextprotocol/sdk'
+ - hono
+ - next
+ - p-retry
+ - rxjs
+ - zod
'@manypkg/[email protected]':
dependencies:
@@ -7867,64 +8116,7 @@ snapshots:
- valibot
- zod-openapi
- dependencies:
- '@a2a-js/sdk': 0.2.5
- '@ai-sdk/provider': 1.1.3
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- '@ai-sdk/provider-utils-v5': '@ai-sdk/[email protected]([email protected])'
- '@ai-sdk/provider-v5': '@ai-sdk/[email protected]'
- '@ai-sdk/ui-utils': 1.2.11([email protected])
- '@opentelemetry/api': 1.9.0
- '@opentelemetry/auto-instrumentations-node': 0.62.1(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))
- '@opentelemetry/core': 2.0.1(@opentelemetry/[email protected])
- '@opentelemetry/exporter-trace-otlp-grpc': 0.203.0(@opentelemetry/[email protected])
- '@opentelemetry/exporter-trace-otlp-http': 0.203.0(@opentelemetry/[email protected])
- '@opentelemetry/otlp-exporter-base': 0.203.0(@opentelemetry/[email protected])
- '@opentelemetry/otlp-transformer': 0.203.0(@opentelemetry/[email protected])
- '@opentelemetry/resources': 2.0.1(@opentelemetry/[email protected])
- '@opentelemetry/sdk-metrics': 2.0.1(@opentelemetry/[email protected])
- '@opentelemetry/sdk-node': 0.203.0(@opentelemetry/[email protected])
- '@opentelemetry/sdk-trace-base': 2.0.1(@opentelemetry/[email protected])
- '@opentelemetry/sdk-trace-node': 2.0.1(@opentelemetry/[email protected])
- '@opentelemetry/semantic-conventions': 1.36.0
- '@sindresorhus/slugify': 2.2.1
- date-fns: 3.6.0
- dotenv: 16.6.1
- hono: 4.9.7
- js-tiktoken: 1.0.20
- json-schema: 0.4.0
- json-schema-to-zod: 2.6.1
- p-map: 7.0.3
- pino: 9.7.0
- pino-pretty: 13.0.0
- radash: 12.1.1
- sift: 17.1.3
- xstate: 5.20.2
- zod: 4.1.9
- zod-to-json-schema: 3.24.6([email protected])
- transitivePeerDependencies:
- - '@hono/arktype-validator'
- - '@hono/effect-validator'
- - '@hono/typebox-validator'
- - '@hono/valibot-validator'
- - '@hono/zod-validator'
- - '@sinclair/typebox'
- - '@valibot/to-json-schema'
- - arktype
- - effect
- - encoding
- - openapi-types
- - react
- - supports-color
- - valibot
- - zod-openapi
-
dependencies:
'@apidevtools/json-schema-ref-parser': 14.2.1(@types/[email protected])
@@ -7940,22 +8132,6 @@ snapshots:
- '@types/json-schema'
- supports-color
- dependencies:
- '@apidevtools/json-schema-ref-parser': 14.2.1(@types/[email protected])
- '@modelcontextprotocol/sdk': 1.18.0
- date-fns: 4.1.0
- exit-hook: 4.0.0
- fast-deep-equal: 3.1.3
- uuid: 11.1.0
- zod: 4.1.9
- zod-from-json-schema: 0.5.0
- zod-from-json-schema-v3: [email protected]
- transitivePeerDependencies:
- - '@types/json-schema'
- - supports-color
-
dependencies:
@@ -7965,15 +8141,6 @@ snapshots:
zod-from-json-schema-v3: [email protected]
zod-to-json-schema: 3.24.6([email protected])
- dependencies:
- json-schema: 0.4.0
- zod: 4.1.9
- zod-from-json-schema: 0.5.0
- zod-from-json-schema-v3: [email protected]
- zod-to-json-schema: 3.24.6([email protected])
-
'@modelcontextprotocol/[email protected]':
dependencies:
ajv: 6.12.6
@@ -9002,6 +9169,11 @@ snapshots:
'@rollup/[email protected]':
optional: true
+ '@selderee/[email protected]':
+ dependencies:
+ domhandler: 5.0.3
+ selderee: 0.11.0
+
'@shikijs/[email protected]':
dependencies:
'@shikijs/types': 3.6.0
@@ -9033,6 +9205,24 @@ snapshots:
dependencies:
escape-string-regexp: 5.0.0
+ '@smithy/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+
+ '@smithy/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+
+ '@smithy/[email protected]':
+ dependencies:
+ '@smithy/is-array-buffer': 2.2.0
+ tslib: 2.8.1
+
+ '@smithy/[email protected]':
+ dependencies:
+ '@smithy/util-buffer-from': 2.2.0
+ tslib: 2.8.1
+
'@speed-highlight/[email protected]': {}
'@standard-schema/[email protected]': {}
@@ -9056,7 +9246,7 @@ snapshots:
dependencies:
'@types/connect': 3.4.38
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
dependencies:
@@ -9064,7 +9254,7 @@ snapshots:
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
dependencies:
@@ -9072,7 +9262,7 @@ snapshots:
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
dependencies:
@@ -9080,7 +9270,7 @@ snapshots:
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
dependencies:
@@ -9096,7 +9286,7 @@ snapshots:
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
'@types/qs': 6.14.0
'@types/range-parser': 1.2.7
'@types/send': 0.17.5
@@ -9121,9 +9311,11 @@ snapshots:
'@types/[email protected]': {}
+ '@types/[email protected]': {}
+
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
'@types/[email protected]': {}
@@ -9131,15 +9323,15 @@ snapshots:
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
dependencies:
- '@types/node': 20.19.1
+ '@types/node': 24.6.2
form-data: 4.0.3
'@types/[email protected]': {}
@@ -9160,9 +9352,13 @@ snapshots:
dependencies:
undici-types: 7.8.0
+ '@types/[email protected]':
+ dependencies:
+ undici-types: 7.13.0
+
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
dependencies:
@@ -9170,13 +9366,13 @@ snapshots:
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
pg-protocol: 1.10.1
pg-types: 2.2.0
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
pg-protocol: 1.10.1
pg-types: 2.2.0
@@ -9198,17 +9394,17 @@ snapshots:
dependencies:
'@types/mime': 1.3.5
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
dependencies:
'@types/http-errors': 2.0.5
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
'@types/send': 0.17.5
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
'@types/[email protected]': {}
@@ -9218,7 +9414,7 @@ snapshots:
dependencies:
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
dependencies:
@@ -9324,6 +9520,14 @@ snapshots:
chai: 5.2.0
tinyrainbow: 2.0.0
+ dependencies:
+ '@vitest/spy': 3.2.4
+ estree-walker: 3.0.3
+ magic-string: 0.30.17
+ optionalDependencies:
+
dependencies:
'@vitest/spy': 3.2.4
@@ -9332,6 +9536,22 @@ snapshots:
optionalDependencies:
+ dependencies:
+ '@vitest/spy': 3.2.4
+ estree-walker: 3.0.3
+ magic-string: 0.30.17
+ optionalDependencies:
+
+ dependencies:
+ '@vitest/spy': 3.2.4
+ estree-walker: 3.0.3
+ magic-string: 0.30.17
+ optionalDependencies:
+
'@vitest/[email protected]':
dependencies:
tinyrainbow: 2.0.0
@@ -9361,7 +9581,7 @@ snapshots:
sirv: 3.0.1
tinyglobby: 0.2.14
tinyrainbow: 2.0.0
'@vitest/[email protected]':
dependencies:
@@ -9415,18 +9635,6 @@ snapshots:
optionalDependencies:
react: 18.3.1
- dependencies:
- '@ai-sdk/provider': 1.1.3
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- '@ai-sdk/react': 1.2.12([email protected])([email protected])
- '@ai-sdk/ui-utils': 1.2.11([email protected])
- '@opentelemetry/api': 1.9.0
- jsondiffpatch: 0.6.0
- zod: 4.1.9
- optionalDependencies:
- react: 18.3.1
-
dependencies:
'@ai-sdk/gateway': 1.0.15([email protected])
@@ -9435,14 +9643,6 @@ snapshots:
'@opentelemetry/api': 1.9.0
zod: 3.25.76
- dependencies:
- '@ai-sdk/gateway': 1.0.15([email protected])
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.7([email protected])
- '@opentelemetry/api': 1.9.0
- zod: 4.1.9
-
dependencies:
'@ai-sdk/gateway': 1.0.23([email protected])
@@ -9451,14 +9651,6 @@ snapshots:
'@opentelemetry/api': 1.9.0
zod: 3.25.76
- dependencies:
- '@ai-sdk/gateway': 1.0.23([email protected])
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.9([email protected])
- '@opentelemetry/api': 1.9.0
- zod: 4.1.9
-
dependencies:
fast-deep-equal: 3.1.3
@@ -9766,23 +9958,23 @@ snapshots:
has-own-prop: 2.0.0
repeat-string: 1.6.1
dependencies:
- '@ai-sdk/openai': 2.0.35([email protected])
+ '@ai-sdk/openai': 2.0.35([email protected])
'@cloudflare/workers-types': 4.20250917.0
'@composio/mcp': 1.0.3-0
'@hey-api/client-axios': 0.2.12([email protected])
- ai: 5.0.44([email protected])
+ ai: 5.0.44([email protected])
axios: 1.10.0
chalk: 4.1.2
cli-progress: 3.12.0
commander: 12.1.0
inquirer: 10.2.2
open: 8.4.2
pusher-js: 8.4.0-rc2
resolve-package-path: 4.0.3
uuid: 10.0.0
@@ -9910,6 +10102,8 @@ snapshots:
+
@@ -9955,6 +10149,24 @@ snapshots:
+ dependencies:
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+ entities: 4.5.0
+
+
+ dependencies:
+ domelementtype: 2.3.0
+
+ dependencies:
+ dom-serializer: 2.0.0
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+
@@ -10587,19 +10799,25 @@ snapshots:
hono: 4.9.7
zod: 3.25.76
- dependencies:
- json-schema-walker: 2.0.0
- openapi-types: 12.1.3
- optionalDependencies:
- effect: 3.16.16
- hono: 4.9.7
- zod: 4.1.9
-
+ dependencies:
+ '@selderee/plugin-htmlparser2': 0.11.0
+ deepmerge: 4.3.1
+ dom-serializer: 2.0.0
+ htmlparser2: 8.0.2
+ selderee: 0.11.0
+
+ dependencies:
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+ domutils: 3.2.2
+ entities: 4.5.0
+
dependencies:
depd: 2.0.0
@@ -10833,15 +11051,15 @@ snapshots:
dependencies:
- '@langchain/textsplitters': 0.1.0(@langchain/[email protected]([email protected]([email protected])([email protected])))
+ '@langchain/textsplitters': 0.1.0(@langchain/[email protected]([email protected]([email protected])([email protected])))
js-tiktoken: 1.0.21
js-yaml: 4.1.0
jsonpointer: 5.0.1
- langsmith: 0.3.68(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected])([email protected]))
+ langsmith: 0.3.68(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected])([email protected]))
openapi-types: 12.1.3
p-retry: 4.6.2
uuid: 10.0.0
@@ -10868,18 +11086,6 @@ snapshots:
optionalDependencies:
- dependencies:
- '@types/uuid': 10.0.0
- chalk: 4.1.2
- console-table-printer: 2.14.3
- p-queue: 6.6.2
- p-retry: 4.6.2
- semver: 7.7.2
- uuid: 10.0.0
- optionalDependencies:
-
dependencies:
'@types/uuid': 10.0.0
@@ -10892,7 +11098,7 @@ snapshots:
optionalDependencies:
dependencies:
'@types/uuid': 10.0.0
chalk: 4.1.2
@@ -10905,7 +11111,9 @@ snapshots:
'@opentelemetry/api': 1.9.0
'@opentelemetry/exporter-trace-otlp-proto': 0.203.0(@opentelemetry/[email protected])
'@opentelemetry/sdk-trace-base': 2.0.1(@opentelemetry/[email protected])
+
dependencies:
@@ -10944,6 +11152,50 @@ snapshots:
rfdc: 1.4.1
wrap-ansi: 9.0.0
+ dependencies:
+ '@llamaindex/core': 0.6.22
+ '@llamaindex/env': 0.1.30
+ '@llamaindex/node-parser': 2.0.22(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])([email protected])
+ '@types/lodash': 4.17.20
+ '@types/node': 24.6.2
+ lodash: 4.17.21
+ magic-bytes.js: 1.12.1
+ transitivePeerDependencies:
+ - '@huggingface/transformers'
+ - '@modelcontextprotocol/sdk'
+ - gpt-tokenizer
+ - hono
+ - next
+ - p-retry
+ - rxjs
+ - tree-sitter
+ - web-tree-sitter
+ - zod
+
+ dependencies:
+ '@llamaindex/core': 0.6.22
+ '@llamaindex/env': 0.1.30
+ '@llamaindex/node-parser': 2.0.22(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])([email protected])
+ '@types/lodash': 4.17.20
+ '@types/node': 24.6.2
+ lodash: 4.17.21
+ magic-bytes.js: 1.12.1
+ transitivePeerDependencies:
+ - '@huggingface/transformers'
+ - '@modelcontextprotocol/sdk'
+ - gpt-tokenizer
+ - hono
+ - next
+ - p-retry
+ - rxjs
+ - tree-sitter
+ - web-tree-sitter
+ - zod
+
@@ -10962,6 +11214,8 @@ snapshots:
+
dependencies:
ansi-escapes: 7.0.0
@@ -10982,6 +11236,8 @@ snapshots:
+
dependencies:
'@jridgewell/sourcemap-codec': 1.5.0
@@ -11161,6 +11417,8 @@ snapshots:
+
@@ -11172,6 +11430,8 @@ snapshots:
detect-libc: 2.0.4
optional: true
+
@@ -11251,30 +11511,15 @@ snapshots:
transitivePeerDependencies:
- encoding
- dependencies:
- '@types/node': 18.19.112
- '@types/node-fetch': 2.6.12
- abort-controller: 3.0.0
- agentkeepalive: 4.6.0
- form-data-encoder: 1.7.2
- formdata-node: 4.4.1
- node-fetch: 2.7.0
- optionalDependencies:
- ws: 8.18.2
- zod: 4.1.9
- transitivePeerDependencies:
- - encoding
-
optionalDependencies:
ws: 8.18.2
zod: 3.25.76
optionalDependencies:
ws: 8.18.2
- zod: 4.1.9
+ zod: 3.25.76
optionalDependencies:
@@ -11364,6 +11609,11 @@ snapshots:
index-to-position: 1.1.0
type-fest: 4.41.0
+ dependencies:
+ leac: 0.6.0
+ peberminta: 0.9.0
+
@@ -11395,10 +11645,14 @@ snapshots:
+
+
@@ -11571,7 +11825,7 @@ snapshots:
'@protobufjs/path': 1.1.2
'@protobufjs/pool': 1.1.0
'@protobufjs/utf8': 1.1.0
- '@types/node': 24.0.3
+ '@types/node': 24.6.2
long: 5.3.2
@@ -11780,6 +12034,10 @@ snapshots:
dependencies:
commander: 2.20.3
+ dependencies:
+ parseley: 0.12.1
+
@@ -12202,6 +12460,11 @@ snapshots:
+ dependencies:
+ node-addon-api: 8.5.0
+ node-gyp-build: 4.8.4
+
dependencies:
typescript: 5.9.2
@@ -12350,6 +12613,8 @@ snapshots:
+
@@ -12457,6 +12722,27 @@ snapshots:
- tsx
- yaml
+ dependencies:
+ cac: 6.7.14
+ debug: 4.4.1([email protected])
+ es-module-lexer: 1.7.0
+ pathe: 2.0.3
+ transitivePeerDependencies:
+ - '@types/node'
+ - jiti
+ - less
+ - lightningcss
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ - tsx
+ - yaml
+
dependencies:
esbuild: 0.25.5
@@ -12502,11 +12788,26 @@ snapshots:
tsx: 4.20.5
yaml: 2.8.1
+ dependencies:
+ esbuild: 0.25.5
+ fdir: 6.4.6([email protected])
+ picomatch: 4.0.2
+ postcss: 8.5.6
+ rollup: 4.43.0
+ tinyglobby: 0.2.14
+ optionalDependencies:
+ '@types/node': 24.6.2
+ fsevents: 2.3.3
+ jiti: 1.21.7
+ tsx: 4.20.5
+ yaml: 2.8.1
+
dependencies:
'@types/chai': 5.2.2
'@vitest/expect': 3.2.4
'@vitest/pretty-format': 3.2.4
'@vitest/runner': 3.2.4
'@vitest/snapshot': 3.2.4
@@ -12590,7 +12891,7 @@ snapshots:
dependencies:
'@types/chai': 5.2.2
'@vitest/expect': 3.2.4
'@vitest/pretty-format': 3.2.4
'@vitest/runner': 3.2.4
'@vitest/snapshot': 3.2.4
@@ -12628,8 +12929,52 @@ snapshots:
- tsx
- yaml
+ dependencies:
+ '@types/chai': 5.2.2
+ '@vitest/expect': 3.2.4
+ '@vitest/pretty-format': 3.2.4
+ '@vitest/runner': 3.2.4
+ '@vitest/snapshot': 3.2.4
+ '@vitest/spy': 3.2.4
+ '@vitest/utils': 3.2.4
+ chai: 5.2.0
+ debug: 4.4.1([email protected])
+ expect-type: 1.2.1
+ magic-string: 0.30.17
+ pathe: 2.0.3
+ picomatch: 4.0.2
+ std-env: 3.9.0
+ tinybench: 2.9.0
+ tinyexec: 0.3.2
+ tinyglobby: 0.2.14
+ tinypool: 1.1.1
+ tinyrainbow: 2.0.0
+ why-is-node-running: 2.3.0
+ optionalDependencies:
+ '@types/node': 24.6.2
+ '@vitest/ui': 3.2.4([email protected])
+ transitivePeerDependencies:
+ - jiti
+ - less
+ - lightningcss
+ - msw
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ - tsx
+ - yaml
+
+
@@ -12785,18 +13130,10 @@ snapshots:
dependencies:
zod: 3.25.76
- dependencies:
- zod: 4.1.9
-
dependencies:
zod: 3.25.76
- dependencies:
- zod: 4.1.9
-
diff --git a/ts/examples/llamaindex/.env.example b/ts/examples/llamaindex/.env.example
new file mode 100644
index 000000000..0e728257c
--- /dev/null
+++ b/ts/examples/llamaindex/.env.example
@@ -0,0 +1,6 @@
+# Composio API Key - Get it from https://app.composio.dev
+COMPOSIO_API_KEY=your_composio_api_key_here
+
+# Add other environment variables as needed for your example
+# OPENAI_API_KEY=your_openai_api_key_here
+# ANTHROPIC_API_KEY=your_anthropic_api_key_here
diff --git a/ts/examples/llamaindex/README.md b/ts/examples/llamaindex/README.md
new file mode 100644
index 000000000..840b486b7
--- /dev/null
+++ b/ts/examples/llamaindex/README.md
@@ -0,0 +1,53 @@
+# Llamaindex Example
+
+This example demonstrates how to use Composio SDK for llamaindex.
+
+## Setup
+
+1. **Install dependencies:**
+ ```bash
+ pnpm install
+ ```
+
+2. **Configure environment:**
+ ```bash
+ cp .env.example .env
+ ```
+
+ Then edit `.env` and add your API keys:
+ - `COMPOSIO_API_KEY`: Get it from [Composio Dashboard](https://app.composio.dev)
+
+## Running the Example
+
+```bash
+# Run the example
+pnpm start
+
+# Run in development mode (with file watching)
+pnpm dev
+```
+
+## What This Example Does
+
+- Initializes Composio SDK
+- Fetches available tools
+- Demonstrates basic usage patterns
+
+## Customization
+
+Edit `src/index.ts` to:
+- Add specific apps you want to integrate with
+- Implement your business logic
+- Add error handling and logging
+
+## Related Examples
+
+- [OpenAI Example](../openai) - Shows integration with OpenAI
+- [LangChain Example](../langchain) - Shows integration with LangChain
+- [More Examples](../) - Browse all available examples
+
+## Support
+
+- [Documentation](https://docs.composio.dev)
+- [Discord Community](https://discord.gg/composio)
+- [GitHub Issues](https://github.com/composio/composio/issues)
diff --git a/ts/examples/llamaindex/package.json b/ts/examples/llamaindex/package.json
new file mode 100644
index 000000000..58922c45c
--- /dev/null
+++ b/ts/examples/llamaindex/package.json
@@ -0,0 +1,32 @@
+{
+ "name": "llamaindex-example",
+ "private": true,
+ "version": "0.1.0",
+ "description": "Example project for Llamaindex",
+ "main": "src/index.ts",
+ "scripts": {
+ "start": "bun src/index.ts",
+ "dev": "bun --watch src/index.ts",
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "keywords": [
+ "composio",
+ "example",
+ "llamaindex"
+ ],
+ "author": "",
+ "license": "ISC",
+ "packageManager": "[email protected]",
+ "dependencies": {
+ "@composio/core": "workspace:*",
+ "@composio/llamaindex": "workspace:*",
+ "@llamaindex/openai": "^0.4.20",
+ "@llamaindex/workflow": "^1.1.24",
+ "dotenv": "^16.4.1",
+ "llamaindex": "^0.12.0"
+ },
+ "devDependencies": {
+ "@types/bun": "^1.2.9",
+ "typescript": "catalog:"
+ }
+}
diff --git a/ts/examples/llamaindex/src/index.ts b/ts/examples/llamaindex/src/index.ts
new file mode 100644
index 000000000..d9e8136c9
--- /dev/null
+++ b/ts/examples/llamaindex/src/index.ts
@@ -0,0 +1,78 @@
+/**
+ * Llamaindex Example
+ *
+ * This example demonstrates how to use Composio SDK for llamaindex.
+ *
+ * Prerequisites:
+ * 1. Set up your COMPOSIO_API_KEY in the .env file
+ * 3. Run the example: pnpm start
+ */
+
+import { Composio } from '@composio/core';
+import { LlamaindexProvider } from '@composio/llamaindex';
+import { openai } from '@llamaindex/openai';
+import { agent, agentStreamEvent } from '@llamaindex/workflow';
+import 'dotenv/config';
+
+/**
+ * Initialize Composio
+ */
+const composio = new Composio({
+ apiKey: process.env.COMPOSIO_API_KEY,
+ provider: new LlamaindexProvider(),
+});
+
+/**
+ * Main function to run the example
+ */
+async function main() {
+ try {
+ console.log('πŸš€ Starting Llamaindex Example...');
+
+ // Get available tools
+ const tools = await composio.tools.get(
+ 'default',
+ {
+ // Specify the apps you want to use
+ toolkits: ['hackernews'],
+ limit: 10,
+ },
+ {
+ beforeExecute: ({ toolSlug, toolkitSlug, params }) => {
+ console.log(`πŸ”„ Executing tool ${toolSlug}/${toolkitSlug} with params:`, { params });
+ return params;
+ },
+ afterExecute: ({ toolSlug, toolkitSlug, result }) => {
+ console.log(`βœ… Executed tool ${toolSlug}/${toolkitSlug} with result:`, { result });
+ return result;
+ },
+ }
+ );
+
+ console.log(`βœ… Found ${tools.length} tools`);
+
+ // TODO: Add your example implementation here
+ console.log('πŸ“ Fetching posts from hackernews!');
+ const hackernewsAgent = agent({
+ name: 'Hackernews Agent',
+ description: 'A helpful hackernews assistant',
+ llm: openai({ model: 'gpt-4o-mini' }),
+ systemPrompt:
+ 'You are a helpful hackernews assistant that helps users with their queries related to hackernews',
+ tools,
+ });
+
+ const stream = await hackernewsAgent.runStream('Summarize the front page of hackernews');
+
+ for await (const event of stream) {
+ if (agentStreamEvent.include(event)) {
+ process.stdout.write(event.data.delta);
+ }
+ }
+ } catch (error) {
+ console.error('❌ Error running example:', error);
+ }
+}
+
+// Run the example
+main().catch(console.error);
diff --git a/ts/examples/llamaindex/tsconfig.json b/ts/examples/llamaindex/tsconfig.json
new file mode 100644
index 000000000..f736a53ab
--- /dev/null
+++ b/ts/examples/llamaindex/tsconfig.json
@@ -0,0 +1,16 @@
+{
+ "compilerOptions": {
+ "target": "es2022",
+ "module": "esnext",
+ "declaration": true,
+ "declarationDir": "./dist",
+ "outDir": "./dist",
+ "rootDir": "./src",
+ "strict": true,
+ "esModuleInterop": true,
+ "moduleResolution": "bundler",
+ "skipLibCheck": true,
+ "resolveJsonModule": true
+ },
+ "include": ["src"]
+}
diff --git a/ts/packages/providers/llamaindex/README.md b/ts/packages/providers/llamaindex/README.md
new file mode 100644
index 000000000..91aa1b3a9
--- /dev/null
+++ b/ts/packages/providers/llamaindex/README.md
@@ -0,0 +1,243 @@
+# @composio/llamaindex
+
+Agentic Provider for Llamaindex in Composio SDK.
+
+## Features
+
+- **Seamless LlamaIndex Integration**: Tools are automatically compatible with LlamaIndex agents and workflows
+- **Full Modifier Support**: Support for both schema and execution modifiers with beforeExecute/afterExecute hooks
+- **Streaming Support**: Works with LlamaIndex streaming agents using `agentStreamEvent`
+- **Tool Execution**: Execute tools with proper parameter handling and JSON schema validation
+- **Type Safety**: Full TypeScript support with proper type definitions
+- **Zod Schema Integration**: Automatic conversion from JSON Schema to Zod for LlamaIndex compatibility
+
+## Installation
+
+```bash
+npm install @composio/llamaindex
+# or
+yarn add @composio/llamaindex
+# or
+pnpm add @composio/llamaindex
+```
+
+## Quick Start
+
+```typescript
+import { Composio } from '@composio/core';
+import { LlamaindexProvider } from '@composio/llamaindex';
+
+// Initialize Composio with Llamaindex provider
+const composio = new Composio({
+ apiKey: 'your-composio-api-key',
+ provider: new LlamaindexProvider(),
+});
+
+// Get available tools
+const tools = await composio.tools.get('user123', {
+ toolkits: ['gmail', 'googlecalendar'],
+ limit: 10,
+});
+```
+
+## Prerequisites
+
+Before using the LlamaIndex provider, make sure you have:
+
+1. **Composio API Key**: Get your API key from [Composio Dashboard](https://app.composio.dev)
+2. **Environment Setup**: Set up your environment variables
+3. **LlamaIndex Dependencies**: Install required LlamaIndex packages
+
+```bash
+# Install LlamaIndex dependencies
+npm install @llamaindex/openai @llamaindex/workflow
+```
+
+```bash
+# Set up environment variables
+export COMPOSIO_API_KEY="your-composio-api-key"
+export OPENAI_API_KEY="your-openai-api-key" # For LlamaIndex OpenAI integration
+```
+
+## Usage Examples
+
+### Basic Example
+
+```typescript
+import { Composio } from '@composio/core';
+import { LlamaindexProvider } from '@composio/llamaindex';
+
+// Initialize Composio
+const composio = new Composio({
+ apiKey: process.env.COMPOSIO_API_KEY,
+ provider: new LlamaindexProvider(),
+});
+
+// Get tools
+const tools = await composio.tools.get('default', {
+ toolkits: ['gmail'],
+ limit: 10,
+});
+
+console.log(`Found ${tools.length} tools`);
+```
+
+### Complete Agent Example with HackerNews
+
+```typescript
+import { Composio } from '@composio/core';
+import { LlamaindexProvider } from '@composio/llamaindex';
+import { openai } from '@llamaindex/openai';
+import { agent, agentStreamEvent } from '@llamaindex/workflow';
+import 'dotenv/config';
+
+// Initialize Composio with LlamaIndex provider
+const composio = new Composio({
+ apiKey: process.env.COMPOSIO_API_KEY,
+ provider: new LlamaindexProvider(),
+});
+
+async function main() {
+ try {
+ console.log('πŸš€ Starting LlamaIndex Example...');
+
+ // Get available tools with modifiers
+ const tools = await composio.tools.get(
+ 'default',
+ {
+ toolkits: ['hackernews'],
+ limit: 10,
+ },
+ {
+ beforeExecute: ({ toolSlug, toolkitSlug, params }) => {
+ console.log(`πŸ”„ Executing tool ${toolSlug}/${toolkitSlug} with params:`, { params });
+ return params;
+ },
+ afterExecute: ({ toolSlug, toolkitSlug, result }) => {
+ console.log(`βœ… Executed tool ${toolSlug}/${toolkitSlug} with result:`, { result });
+ return result;
+ },
+ }
+ );
+
+ console.log(`βœ… Found ${tools.length} tools`);
+
+ // Create LlamaIndex agent with Composio tools
+ const hackernewsAgent = agent({
+ name: 'Hackernews Agent',
+ description: 'A helpful hackernews assistant',
+ llm: openai({ model: 'gpt-4o-mini' }),
+ systemPrompt:
+ 'You are a helpful hackernews assistant that helps users with their queries related to hackernews',
+ tools, // Composio tools are automatically compatible with LlamaIndex
+ });
+
+ // Run the agent with streaming
+ const stream = await hackernewsAgent.runStream('Summarize the front page of hackernews');
+
+ for await (const event of stream) {
+ if (agentStreamEvent.include(event)) {
+ process.stdout.write(event.data.delta);
+ }
+ }
+ } catch (error) {
+ console.error('❌ Error running example:', error);
+ }
+}
+
+main().catch(console.error);
+```
+
+### Using Tools with Different Toolkits
+
+```typescript
+import { Composio } from '@composio/core';
+import { LlamaindexProvider } from '@composio/llamaindex';
+import { openai } from '@llamaindex/openai';
+import { agent } from '@llamaindex/workflow';
+
+const composio = new Composio({
+ apiKey: process.env.COMPOSIO_API_KEY,
+ provider: new LlamaindexProvider(),
+});
+
+// Get tools from multiple toolkits
+const tools = await composio.tools.get('default', {
+ toolkits: ['gmail', 'googlecalendar', 'slack'],
+ limit: 20,
+});
+
+// Create a multi-purpose agent
+const assistantAgent = agent({
+ name: 'Personal Assistant',
+ description: 'A helpful personal assistant',
+ llm: openai({ model: 'gpt-4' }),
+ systemPrompt:
+ 'You are a helpful personal assistant that can manage emails, calendar events, and slack messages.',
+ tools,
+});
+
+// Use the agent
+const response = await assistantAgent.run(
+ 'Schedule a meeting for tomorrow at 2 PM and send a slack message about it'
+);
+console.log(response);
+```
+
+## API Reference
+
+### LlamaindexProvider Class
+
+The `LlamaindexProvider` class extends `BaseAgenticProvider` and provides llamaindex-specific functionality.
+
+#### Methods
+
+##### `wrapTool(tool: Tool, executeTool: ExecuteToolFn): LlamaindexTool`
+
+Wraps a single Composio tool in the LlamaIndex format with proper Zod schema conversion.
+
+```typescript
+const llamaindexTool = provider.wrapTool(composioTool, executeTool);
+
+// The wrapped tool has LlamaIndex-compatible structure:
+// - metadata.name: Tool slug
+// - metadata.description: Tool description
+// - metadata.parameters: Zod schema for parameters
+// - call(): Function to execute the tool
+```
+
+##### `wrapTools(tools: Tool[], executeTool: ExecuteToolFn): LlamaindexTool[]`
+
+Wraps multiple Composio tools for use with LlamaIndex agents.
+
+```typescript
+const llamaindexTools = provider.wrapTools(composioTools, executeTool);
+
+// Use directly with LlamaIndex agents
+const agent = agent({
+ name: 'My Agent',
+ llm: openai({ model: 'gpt-4' }),
+ tools: llamaindexTools, // Ready to use!
+});
+```
+
+##### `wrapMcpServerResponse(data: McpUrlResponse): McpServerGetResponse`
+
+Transforms MCP URL responses into the standard format with URL objects.
+
+```typescript
+const mcpServers = provider.wrapMcpServerResponse(urlResponse);
+// Returns: [{ url: URL, name: string }, ...]
+```
+
+## Contributing
+
+We welcome contributions! Please see our [Contributing Guide](../../CONTRIBUTING.md) for more details.
+
+## License
+
+ISC License
+
+## Support
+
+For support, please visit our [Documentation](https://docs.composio.dev) or join our [Discord Community](https://discord.gg/composio).
diff --git a/ts/packages/providers/llamaindex/package.json b/ts/packages/providers/llamaindex/package.json
new file mode 100644
index 000000000..f20f0b443
--- /dev/null
+++ b/ts/packages/providers/llamaindex/package.json
@@ -0,0 +1,44 @@
+{
+ "name": "@composio/llamaindex",
+ "version": "0.1.53",
+ "description": "Agentic Provider for llamaindex in Composio SDK",
+ "main": "src/index.ts",
+ "type": "module",
+ "publishConfig": {
+ "access": "public",
+ "main": "dist/index.js",
+ "types": "dist/index.d.ts"
+ },
+ "exports": {
+ ".": {
+ "import": "./dist/index.js",
+ "types": "./dist/index.d.ts",
+ "require": "./dist/index.cjs"
+ }
+ },
+ "files": [
+ "README.md",
+ "dist"
+ ],
+ "scripts": {
+ "build": "tsup",
+ "test": "vitest run"
+ },
+ "keywords": [
+ "composio",
+ "provider",
+ "llamaindex"
+ ],
+ "author": "",
+ "license": "ISC",
+ "packageManager": "[email protected]",
+ "peerDependencies": {
+ "@composio/core": "^0.1.0",
+ "llamaindex": "^0.12.0"
+ },
+ "devDependencies": {
+ "@composio/core": "workspace:*",
+ "tsup": "catalog:",
+ "typescript": "catalog:"
+ }
+}
diff --git a/ts/packages/providers/llamaindex/src/index.ts b/ts/packages/providers/llamaindex/src/index.ts
new file mode 100644
index 000000000..1cddb008b
--- /dev/null
+++ b/ts/packages/providers/llamaindex/src/index.ts
@@ -0,0 +1,72 @@
+/**
+ * Llamaindex Provider
+ *
+ * This provider provides a set of tools for interacting with Llamaindex.
+ *
+ * @packageDocumentation
+ * @module providers/llamaindex
+ */
+import {
+ BaseAgenticProvider,
+ Tool,
+ ExecuteToolFn,
+ McpServerGetResponse,
+ McpUrlResponse,
+ jsonSchemaToZodSchema,
+} from '@composio/core';
+import { tool as createLlamaindexTool, JSONValue } from 'llamaindex';
+
+export type LlamaindexTool = ReturnType<typeof createLlamaindexTool>;
+export type LlamaindexToolCollection = Array<LlamaindexTool>;
+
+export class LlamaindexProvider extends BaseAgenticProvider<
+ Array<LlamaindexTool>,
+ LlamaindexTool,
+ McpServerGetResponse
+> {
+ readonly name = 'llamaindex';
+
+ /**
+ * Wrap a tool in the llamaindex format.
+ * @param tool - The tool to wrap.
+ * @returns The wrapped tool.
+ */
+ wrapTool(tool: Tool, executeTool: ExecuteToolFn): LlamaindexTool {
+ const inputParams = tool.inputParameters;
+ const inputParametersSchema = jsonSchemaToZodSchema(inputParams ?? {});
+ return createLlamaindexTool({
+ name: tool.slug,
+ description: tool.description ?? tool.name ?? '',
+ parameters: inputParametersSchema,
+ execute: async input => {
+ const result = await executeTool(tool.slug, input as Record<string, unknown>);
+ return JSON.stringify(result);
+ },
+ });
+ }
+
+ /**
+ * Wrap a list of tools in the llamaindex format.
+ * @param tools - The tools to wrap.
+ * @returns The wrapped tools.
+ */
+ wrapTools(tools: Tool[], executeTool: ExecuteToolFn): LlamaindexToolCollection {
+ return tools.map(tool => this.wrapTool(tool, executeTool));
+ }
+
+ /**
+ * Transform MCP URL response into Anthropic-specific format.
+ * By default, Anthropic uses the standard format (same as default),
+ * but this method is here to show providers can customize if needed.
+ *
+ * @param data - The MCP URL response data
+ * @returns Standard MCP server response format
+ */
+ wrapMcpServerResponse(data: McpUrlResponse): McpServerGetResponse {
+ // Anthropic uses the standard format
+ return data.map(item => ({
+ url: new URL(item.url),
+ name: item.name,
+ })) as McpServerGetResponse;
+ }
+}
diff --git a/ts/packages/providers/llamaindex/test/llamaindex.test.ts b/ts/packages/providers/llamaindex/test/llamaindex.test.ts
new file mode 100644
index 000000000..6f85954fc
--- /dev/null
+++ b/ts/packages/providers/llamaindex/test/llamaindex.test.ts
@@ -0,0 +1,338 @@
+import { describe, it, expect, beforeEach, vi } from 'vitest';
+import { LlamaindexProvider, LlamaindexTool } from '../src';
+import { Tool } from '@composio/core';
+
+// Mock the llamaindex module
+vi.mock('llamaindex', () => {
+ return {
+ tool: vi.fn().mockImplementation(config => ({
+ metadata: {
+ name: config.name,
+ description: config.description,
+ parameters: config.parameters,
+ },
+ call: config.execute,
+ // Mock LlamaIndex tool properties
+ _type: 'llamaindex_tool',
+ _config: config,
+ })),
+ JSONValue: {},
+ };
+});
+
+describe('LlamaindexProvider', () => {
+ let provider: LlamaindexProvider;
+ let sampleTool: Tool;
+ let executeToolFn: (toolSlug: string, params: Record<string, unknown>) => Promise<any>;
+
+ beforeEach(() => {
+ provider = new LlamaindexProvider();
+
+ // Create a real execute function that simulates tool execution
+ executeToolFn = vi
+ .fn()
+ .mockImplementation(async (toolSlug: string, params: Record<string, unknown>) => {
+ // Simulate actual tool execution with realistic response
+ return {
+ data: { toolSlug, params },
+ error: null,
+ successful: true,
+ };
+ });
+
+ // Create a real sample tool that matches actual tool structure
+ sampleTool = {
+ slug: 'SEARCH_TOOL',
+ name: 'Search Tool',
+ description: 'Search for information in the knowledge base',
+ version: '20250909_00',
+ availableVersions: ['20250909_00', '20250901_00'],
+ inputParameters: {
+ type: 'object',
+ properties: {
+ query: {
+ type: 'string',
+ description: 'The search query',
+ },
+ },
+ required: ['query'],
+ additionalProperties: false,
+ },
+ toolkit: {
+ slug: 'search_toolkit',
+ name: 'Search Toolkit',
+ },
+ tags: ['search', 'knowledge'],
+ };
+ });
+
+ describe('Provider Configuration', () => {
+ it('should be properly initialized with correct name', () => {
+ expect(provider.name).toBe('llamaindex');
+ });
+
+ it('should be marked as agentic', () => {
+ expect(provider._isAgentic).toBe(true);
+ });
+ });
+
+ describe('Tool Wrapping', () => {
+ it('should successfully wrap a valid tool into LlamaIndex format', () => {
+ const wrappedTool = provider.wrapTool(sampleTool, executeToolFn);
+
+ // Verify the wrapped tool has the correct structure
+ expect(wrappedTool.metadata.name).toBe(sampleTool.slug);
+ expect(wrappedTool.metadata.description).toBe(sampleTool.description);
+ expect(wrappedTool).toHaveProperty('metadata');
+ expect(wrappedTool).toHaveProperty('call');
+ expect(typeof wrappedTool.call).toBe('function');
+ });
+
+ it('should wrap a tool that can be executed with parameters', async () => {
+ const wrappedTool = provider.wrapTool(sampleTool, executeToolFn);
+ const searchParams = { query: 'test search' };
+
+ const result = await wrappedTool.call(searchParams);
+ const parsedResult = JSON.parse(result as string);
+
+ expect(parsedResult).toEqual({
+ data: {
+ toolSlug: sampleTool.slug,
+ params: searchParams,
+ },
+ error: null,
+ successful: true,
+ });
+ });
+
+ it('should handle tools without input parameters', () => {
+ const toolWithoutParams = { ...sampleTool, inputParameters: undefined };
+
+ const wrappedTool = provider.wrapTool(toolWithoutParams, executeToolFn);
+
+ expect(wrappedTool.metadata.name).toBe(toolWithoutParams.slug);
+ expect(wrappedTool.metadata.description).toBe(toolWithoutParams.description);
+ expect(wrappedTool.metadata).toHaveProperty('parameters');
+ });
+
+ it('should handle tools without description', () => {
+ const toolWithoutDescription = { ...sampleTool, description: undefined };
+
+ const wrappedTool = provider.wrapTool(toolWithoutDescription, executeToolFn);
+
+ expect(wrappedTool.metadata.name).toBe(toolWithoutDescription.slug);
+ expect(wrappedTool.metadata.description).toBe(toolWithoutDescription.name); // Falls back to tool name
+ expect(wrappedTool.metadata).toHaveProperty('parameters');
+ });
+
+ it('should handle tools without description and name', () => {
+ const toolWithoutDescriptionAndName = {
+ ...sampleTool,
+ description: undefined,
+ name: '', // Empty name to test final fallback
+ };
+
+ const wrappedTool = provider.wrapTool(toolWithoutDescriptionAndName, executeToolFn);
+
+ expect(wrappedTool.metadata.name).toBe(toolWithoutDescriptionAndName.slug);
+ expect(wrappedTool.metadata.description).toBe(''); // Final fallback to empty string
+ expect(wrappedTool.metadata).toHaveProperty('parameters');
+ });
+ });
+
+ describe('Multiple Tools Wrapping', () => {
+ it('should wrap multiple tools correctly', () => {
+ const anotherTool: Tool = {
+ ...sampleTool,
+ slug: 'WEATHER_TOOL',
+ name: 'Weather Tool',
+ description: 'Get weather information',
+ inputParameters: {
+ type: 'object',
+ properties: {
+ location: {
+ type: 'string',
+ description: 'Location to get weather for',
+ },
+ },
+ required: ['location'],
+ additionalProperties: false,
+ },
+ };
+
+ const tools = [sampleTool, anotherTool];
+ const wrappedTools = provider.wrapTools(tools, executeToolFn);
+
+ expect(wrappedTools).toHaveLength(2);
+ expect(wrappedTools[0].metadata.name).toBe('SEARCH_TOOL');
+ expect(wrappedTools[1].metadata.name).toBe('WEATHER_TOOL');
+ expect(wrappedTools.every(tool => typeof tool.call === 'function')).toBe(true);
+ });
+
+ it('should handle empty tools array', () => {
+ const wrappedTools = provider.wrapTools([], executeToolFn);
+ expect(wrappedTools).toEqual([]);
+ });
+ });
+
+ describe('LlamaIndex Integration', () => {
+ it('should produce tools that can be used with LlamaIndex', async () => {
+ const wrappedTool = provider.wrapTool(sampleTool, executeToolFn);
+
+ // Verify the tool has all required LlamaIndex properties
+ expect(wrappedTool).toHaveProperty('metadata');
+ expect(wrappedTool.metadata).toHaveProperty('name');
+ expect(wrappedTool.metadata).toHaveProperty('description');
+ expect(wrappedTool.metadata).toHaveProperty('parameters');
+ expect(wrappedTool).toHaveProperty('call');
+
+ // Test actual execution through LlamaIndex interface
+ const result = await wrappedTool.call({ query: 'test query' });
+ expect(typeof result).toBe('string');
+ expect(() => JSON.parse(result as string)).not.toThrow();
+ });
+
+ it('should return JSONValue from call function', async () => {
+ const wrappedTool = provider.wrapTool(sampleTool, executeToolFn);
+ const result = await wrappedTool.call({ query: 'test' });
+
+ // Should be a JSON string (JSONValue)
+ expect(typeof result).toBe('string');
+ const parsed = JSON.parse(result as string);
+ expect(parsed).toHaveProperty('data');
+ expect(parsed).toHaveProperty('successful');
+ });
+
+ it('should handle execution errors gracefully', async () => {
+ const errorExecuteFn = vi.fn().mockRejectedValue(new Error('Tool execution failed'));
+ const wrappedTool = provider.wrapTool(sampleTool, errorExecuteFn);
+
+ await expect(wrappedTool.call({ query: 'test' })).rejects.toThrow('Tool execution failed');
+ });
+ });
+
+ describe('MCP Server Response Transformation', () => {
+ it('should transform McpUrlResponse to standard format with URL objects', () => {
+ const mcpResponse = [
+ { name: 'server-1', url: 'https://mcp1.example.com' },
+ { name: 'server-2', url: 'https://mcp2.example.com' },
+ { name: 'server-3', url: 'https://mcp3.example.com' },
+ ];
+
+ const result = provider.wrapMcpServerResponse(mcpResponse);
+
+ expect(Array.isArray(result)).toBe(true);
+ expect(result).toHaveLength(3);
+ expect(result[0]).toEqual({
+ url: new URL('https://mcp1.example.com'),
+ name: 'server-1',
+ });
+ expect(result[1]).toEqual({
+ url: new URL('https://mcp2.example.com'),
+ name: 'server-2',
+ });
+ expect(result[2]).toEqual({
+ url: new URL('https://mcp3.example.com'),
+ name: 'server-3',
+ });
+ });
+
+ it('should handle empty array', () => {
+ const mcpResponse: Array<{ name: string; url: string }> = [];
+
+ const result = provider.wrapMcpServerResponse(mcpResponse);
+
+ expect(Array.isArray(result)).toBe(true);
+ expect(result).toHaveLength(0);
+ });
+
+ it('should handle single item array', () => {
+ const mcpResponse = [{ name: 'single-server', url: 'https://single.example.com' }];
+
+ const result = provider.wrapMcpServerResponse(mcpResponse);
+
+ expect(Array.isArray(result)).toBe(true);
+ expect(result).toHaveLength(1);
+ expect(result[0]).toEqual({
+ url: new URL('https://single.example.com'),
+ name: 'single-server',
+ });
+ });
+
+ it('should create proper URL objects from string URLs', () => {
+ const mcpResponse = [
+ { name: 'http-server', url: 'http://insecure.example.com' },
+ { name: 'https-server', url: 'https://secure.example.com' },
+ { name: 'port-server', url: 'https://example.com:8080/path' },
+ { name: 'query-server', url: 'https://example.com?param=value' },
+ { name: 'fragment-server', url: 'https://example.com#section' },
+ ];
+
+ const result = provider.wrapMcpServerResponse(mcpResponse);
+
+ expect(result).toHaveLength(5);
+
+ // Verify URLs are proper URL objects
+ expect(result[0].url).toBeInstanceOf(URL);
+ expect(result[1].url).toBeInstanceOf(URL);
+ expect(result[2].url).toBeInstanceOf(URL);
+ expect(result[3].url).toBeInstanceOf(URL);
+ expect(result[4].url).toBeInstanceOf(URL);
+
+ // Verify URL values
+ expect(result[0].url.href).toBe('http://insecure.example.com/');
+ expect(result[1].url.href).toBe('https://secure.example.com/');
+ expect(result[2].url.href).toBe('https://example.com:8080/path');
+ expect(result[3].url.href).toBe('https://example.com/?param=value');
+ expect(result[4].url.href).toBe('https://example.com/#section');
+ });
+ });
+
+ describe('Edge Cases and Error Handling', () => {
+ it('should handle tools with complex input parameters', () => {
+ const complexTool: Tool = {
+ ...sampleTool,
+ slug: 'COMPLEX_TOOL',
+ inputParameters: {
+ type: 'object',
+ properties: {
+ stringParam: { type: 'string' },
+ numberParam: { type: 'number' },
+ booleanParam: { type: 'boolean' },
+ arrayParam: { type: 'array', items: { type: 'string' } },
+ objectParam: {
+ type: 'object',
+ properties: {
+ nestedString: { type: 'string' },
+ nestedNumber: { type: 'number' },
+ },
+ },
+ },
+ required: ['stringParam', 'numberParam'],
+ },
+ };
+
+ const wrappedTool = provider.wrapTool(complexTool, executeToolFn);
+
+ expect(wrappedTool.metadata.name).toBe('COMPLEX_TOOL');
+ expect(wrappedTool.metadata).toHaveProperty('parameters');
+ });
+
+ it('should handle execution with various parameter types', async () => {
+ const wrappedTool = provider.wrapTool(sampleTool, executeToolFn);
+ const complexParams = {
+ query: 'test search',
+ options: {
+ limit: 10,
+ includeMetadata: true,
+ },
+ tags: ['search', 'test'],
+ };
+
+ const result = await wrappedTool.call(complexParams);
+ const parsedResult = JSON.parse(result as string);
+
+ expect(parsedResult.data.params).toEqual(complexParams);
+ });
+ });
+});
diff --git a/ts/packages/providers/llamaindex/tsconfig.json b/ts/packages/providers/llamaindex/tsconfig.json
new file mode 100644
index 000000000..e8e5e7db4
--- /dev/null
+++ b/ts/packages/providers/llamaindex/tsconfig.json
@@ -0,0 +1,16 @@
+{
+ "extends": "../../../../tsconfig.base.json",
+ "compilerOptions": {
+ "target": "es2022",
+ "module": "esnext",
+ "declaration": true,
+ "declarationDir": "./dist",
+ "outDir": "./dist",
+ "strict": true,
+ "esModuleInterop": true,
+ "moduleResolution": "bundler",
+ "skipLibCheck": true,
+ "resolveJsonModule": true
+ },
+ "include": ["src"]
+}
diff --git a/ts/packages/providers/llamaindex/tsup.config.ts b/ts/packages/providers/llamaindex/tsup.config.ts
new file mode 100644
index 000000000..f9cdf4040
--- /dev/null
+++ b/ts/packages/providers/llamaindex/tsup.config.ts
@@ -0,0 +1,10 @@
+import { defineConfig } from 'tsup';
+
+export default defineConfig({
+ entry: ['src/index.ts'],
+ format: ['esm', 'cjs'],
+ dts: true,
+ clean: true,
+ minify: false,
+ outDir: 'dist',
+});