Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix: feedback on migration guide
balyan.sid@gmail.com committed
Jun 17, 2025 at 10:30 UTC
08ba80bae88613f9b79ed5b1429e1857894a65e3
3 files changed
+186
-166
fern/docs/migration-guide.mdx
+176
-158
@@ -7,42 +7,39 @@ hide-nav-links: true
7
---
8
After a few months of development, we're excited to release the v3 overhaul of the Composio SDK and APIs! ❤️
9
10
-The new API is more intuitive to use, more stable, scalable and the SDKs built on top of it are more ergonomic, feature complete.
11
-
12
-
13
-## What's new?
14
-This major release introduces a new API and SDKs for both TypeScript and Python.
15
-
10
+The new API features improved usability, enhanced stability, and better scalability. The SDKs built on top of it offer improved ergonomics and more comprehensive feature sets.
11
12
## Why a new version?
18
-In the last few months, we noticed an immediate uptick in usage across the board; the APIs as well as the SDKs. Through the feedback from our users and community, we realised a ton of improvements; namely: needed to be made to the SDKs and APIs as well such as a more intuitive nomenclature, more type-safety and a much better developer experience.
13
20
-- More intuitive and consistent nomenclature
21
-- Better support for LLM and agentic frameworks like OpenAI, Vercel AI SDK, OpenAI Agents etc.
14
+Over the past few months, we have observed significant growth in usage of both our APIs and SDKs. Based on extensive feedback from our user community, we identified several key areas requiring improvement:
15
23
-Pretty soon into internalising this feedback, we realised that the best way to make these improvements was to start from scratch.
16
+- More intuitive and consistent naming conventions
17
+- Enhanced support for LLM and agentic frameworks such as OpenAI, Vercel AI SDK, and OpenAI Agents
18
+- Improved type safety and developer experience
19
+
20
+After carefully analyzing this feedback, we determined that implementing these improvements effectively required rebuilding the APIs and SDKs from the ground up.
21
22
## Nomenclature
23
27
-We have updated several key terms in the SDK and API to make them more intuitive and consistent. The table below summarizes the changes:
24
+We have updated several key terms in the SDK and API to improve clarity and consistency. The following table summarizes these changes:
25
29
-| Old Term | New Term | Meaning |
30
-|-------------|--------------------|------------------------------------------------------------------------|
31
-| Actions | Tools | "Tools" are individual operations or capabilities that can be performed by an LLM agent.|
32
-| Apps | Toolkits | A "toolkit" is a collection of tools grouped under a single app. |
33
-| Integration | Auth Config | Each toolkit has it's own "auth config" which contains the appropriate developer credentials and app level configurations like scopes, API endpoints, etc. |
34
-| Connection | Connected accounts | "Connected accounts" represent user-linked accounts to a toolkit. |
35
-| Entity ID | User ID | The ID of the user that is performing the action. Can be UUID/email. |
36
-| Trigger | Trigger | A trigger is an event that can be subscribed to. |
37
-| Toolsets | Providers | A "provider" is any LLM/agent framework that can be used with Composio to create agents. |
26
+| Previous Term | Current Term | Definition |
27
+|---------------|--------------------|--------------------------------------------------------------------------|
28
+| Actions | Tools | Individual operations or capabilities that can be performed by an LLM agent |
29
+| Apps | Toolkits | A collection of tools grouped under a single application |
30
+| Integration | Auth Config | Configuration containing developer credentials and application-level settings such as scopes and API endpoints. Scoped to a toolkit. |
31
+| Connection | Connected accounts | User-linked accounts associated with a toolkit |
32
+| Entity ID | User ID | The identifier of the user performing the action (UUID or email) |
33
+| Trigger | Trigger | An event that can be subscribed to |
34
+| Toolsets | Providers | LLM or agent framework that can be used with Composio to create agents |
35
36
## Switch to nano IDs from UUIDs
40
-Throughout the product, we've made the switch to using nano IDs instead of UUIDs.
37
42
-**Why?**
43
-- UUIDs are very long, not human readable.
44
-- Harder to copy in a single double-click.
45
-- Nano IDs let us disambiguate between different types of IDs.
38
+We have transitioned from UUIDs to nano IDs throughout the platform for the following reasons:
39
+
40
+- **Improved readability**: UUIDs are lengthy and difficult to read
41
+- **Better usability**: Easier to copy with a single double-click
42
+- **Better organization**: Nano IDs allow us to distinguish between different resource types through prefixes
43
44
| Feature | Nano ID Prefix | Example |
45
|-------------------|----------------|--------------------|
@@ -52,16 +49,21 @@ Throughout the product, we've made the switch to using nano IDs instead of UUIDs
49
50
> **Note:** Nano IDs are short, unique, and prefixed to indicate the resource type.
51
55
-## What happens to old APIs?
56
-We've managed to re-route all the old APIs to the new ones.
52
+## Backward compatibility
53
58
-This means that you can continue to use the old APIs, but with some changes.
54
+Aka, we're not breaking anything.
55
60
-- Switch to nano IDs from UUIDs.
61
-- [ ] what other changes
56
+We have implemented routing from all previous API endpoints to their new v3 counterparts, ensuring backward compatibility during the transition period.
57
63
-## SDKs
64
-You can upgrade to the latest version of the SDKs by running the respective install command:
58
+You can continue using previous APIs with the following changes:
59
+- Switch from UUIDs to nano IDs
60
+- Update any deprecated parameters or response formats
61
+
62
+While previous SDK versions remain functional, **we will deprecate support for them in two weeks**.
63
+
64
+## SDK Changes
65
+
66
+Upgrade to the latest SDK version using the appropriate package manager:
67
68
<CodeGroup>
69
```python Python
@@ -72,138 +74,144 @@ npm install @composio/core@next
74
```
75
</CodeGroup>
76
75
-Both the SDKs now follow proper namespacing for each concept.
77
+Both SDKs now implement proper namespacing for each concept.
78
77
-### Scoping to `user_id`
78
-The concept of `entity_id` is now expanded to that of `user_id`.
79
+### User ID scoping
80
80
-Most every query is now scoped to a user ID. Fetching tools, initiating connections, executing tools etc, all require a user ID.
81
+The concept of `entity_id` has been expanded and renamed to `user_id`.
82
82
-This is to verbosely specify the user of your app for which the action is being performed. In case where it is possible for a user to have multiple accounts (think work / personal Gmail connections), a more verbose *connected account ID* can be used.
83
+All operations are now scoped to a user ID, including:
84
+- Fetching tools
85
+- Initiating connections
86
+- Executing tools
87
+- Managing triggers
88
89
+This change provides explicit specification of the user for whom the action is being performed. When a user may have multiple accounts (such as work and personal Gmail connections), you can use the more specific connected account ID.
90
85
-### Deprecating ToolSets for [Providers](/get-started/providers)
86
-In this current version, we deprecate the concept of "toolsets" and replace it with "providers".
91
+### Replacing ToolSets with [Providers](/get-started/providers)
92
88
-With providers, Composio aims to standardize the mess of writing tools in different frameworks more deeply.
93
+We have deprecated "toolsets" in favor of "providers". This change allows Composio to provide deeper standardization for tool implementation across different frameworks.
94
90
-Previously, one had to always import and use a specific framework's `ComposioToolSet` class.
95
+Previously, you needed to import and use a framework-specific `ComposioToolSet` class:
96
97
<CodeGroup>
98
<SnippetCode
99
src="fern/snippets/migration/old_tools.py"
100
startLine={1}
101
endLine={3}
97
- title="Python (old)"
102
+ title="Python (previous)"
103
/>
104
105
<SnippetCode
106
src="fern/snippets/migration/old_tools.ts"
107
startLine={1}
108
endLine={3}
104
- title="TypeScript (old)"
109
+ title="TypeScript (previous)"
110
/>
111
</CodeGroup>
112
108
-The structure of the SDK is now changed to be more framework agnostic.
109
-
110
-**The SDK also ships with OpenAI provider out of the box.**
111
-
112
-You can use the same tools across any framework with our unified interface, or create custom toolsets for frameworks we don't support yet.
113
+The SDK structure is now framework-agnostic and includes the OpenAI provider out of the box:
114
115
<CodeGroup>
116
<SnippetCode
117
src="fern/snippets/migration/providers.py"
118
startLine={1}
118
- endLine={7}
119
- title="Python (new)"
119
+ endLine={12}
120
+ title="Python (current)"
121
/>
122
123
<SnippetCode
124
src="fern/snippets/migration/providers.ts"
125
startLine={1}
125
- endLine={6}
126
- title="TypeScript (new)"
126
+ endLine={12}
127
+ title="TypeScript (current)"
128
/>
129
</CodeGroup>
130
131
+You can now use the same tools across any framework with our unified interface, or create custom toolsets for frameworks we don't yet support.
132
131
-Read more about providers [here](/get-started/providers) and get the full list of providers [here](/providers).
133
+Read more about [providers in our documentation](/get-started/providers) and explore the [complete list of available providers](/providers).
134
135
### Fetching and filtering tools
134
-Previously, fetching the tools let you filter them by;
136
+
137
+Previously, you could filter tools by:
138
- Apps
136
-- Actions names (tool names)
139
+- Action names (tool names)
140
- Tags
141
139
-You could also specify an important flag to get the `important` tools.
142
+You could also specify an `important` flag to retrieve the most important tools:
143
144
<CodeGroup>
145
<SnippetCode
146
src="fern/snippets/migration/old_tools.py"
147
startLine={1}
148
endLine={11}
146
- title="Python (old)"
149
+ title="Python (previous)"
150
/>
151
<SnippetCode
152
src="fern/snippets/migration/old_tools.ts"
153
startLine={1}
154
endLine={11}
152
- title="TypeScript (old)"
155
+ title="TypeScript (previous)"
156
/>
157
</CodeGroup>
158
156
-However, you can now filter them by toolkits, tool slugs, set a `limit` and a search query as well.
159
+You can now filter tools by:
160
+- Toolkits
161
+- Tool slugs
162
+- Limit parameter
163
+- Search query
164
158
-There is no `important` flag, instead the tools are returned in the order of importance.
165
+The `important` flag has been removed. Instead, tools are returned in order of importance by default:
166
160
-<Note>Since a `user_id` is explicitly required, the `check_connected_accounts` flag is not required anymore.</Note>
167
+<Note>Since `user_id` is now explicitly required, the `check_connected_accounts` flag is no longer necessary.</Note>
168
169
<CodeGroup>
170
<SnippetCode
171
src="fern/snippets/migration/new_tools.py"
172
startLine={1}
173
endLine={17}
167
- title="Python (new)"
174
+ title="Python (current)"
175
/>
176
177
<SnippetCode
178
src="fern/snippets/migration/new_tools.ts"
179
startLine={1}
180
endLine={25}
174
- title="TypeScript (new)"
181
+ title="TypeScript (current)"
182
/>
183
</CodeGroup>
184
185
### Fetching raw tool data
179
-To examine the raw schema definitition of a tool to understand the input/output parameters or to build custom logic around tool definitions, you can use the following methods.
186
+
187
+To examine the raw schema definition of a tool for understanding input/output parameters or building custom logic around tool definitions, use the following methods:
188
189
<CodeGroup>
190
<SnippetCode
191
src="fern/snippets/python/raw_tools.py"
192
startLine={1}
193
endLine={11}
186
- title="Python (new)"
194
+ title="Python (current)"
195
/>
196
197
<SnippetCode
198
src="fern/snippets/typescript/raw_tools.ts"
199
startLine={1}
200
endLine={11}
193
- title="TypeScript (new)"
201
+ title="TypeScript (current)"
202
/>
203
</CodeGroup>
204
205
### Executing tools
198
-Executing tools remains largely the same. `user_id` is now explicitly required.
206
200
-For agentic frameworks, the tool object being emitted from `tools.get` is now the respective framework's tool object. Hence, the tool call execution is handled by the agentic framework.
207
+Tool execution remains largely unchanged, with `user_id` now explicitly required.
208
+
209
+For agentic frameworks, the tool object returned from `tools.get` is now the respective framework's native tool object. Tool call execution is handled by the agentic framework itself.
210
211
<Note>
203
-For non-agentic frameworks, Composio provides a helper function to execute the tool calls.
212
+For non-agentic frameworks, Composio provides a helper function to execute tool calls.
213
</Note>
214
206
-
215
<CodeGroup>
216
<SnippetCode
217
src="fern/snippets/migration/new_execute_tools.py"
@@ -224,82 +232,86 @@ For non-agentic frameworks, Composio provides a helper function to execute the t
232
/>
233
</CodeGroup>
234
227
-For more information on executing tools for different frameworks, please refer to [Deprecating ToolSets for Providers](#deprecating-toolsets-for-providers)
235
+For more information on executing tools for different frameworks, see [Replacing ToolSets with Providers](#replacing-toolsets-with-providers).
236
237
### Tool Modifiers (formerly Tool Processors)
230
-Tool processors are now called *tool modifiers* and now have better developer experience as well as being implemented in TypeScript. Previously, tool processors were only in the Python SDK.
238
+
239
+Tool processors have been renamed to *tool modifiers* and now provide an improved developer experience. The implementation is now available in TypeScript too! (previously Python-only).
240
241
<SnippetCode
242
src="fern/snippets/migration/old_tool_modifiers.py"
243
startLine={1}
244
endLine={23}
236
- title="Python (old)"
245
+ title="Python (previous)"
246
/>
247
239
-| Old | New |
240
-|------------|-----------------|
241
-| `pre` processor | `beforeExecute` modifier |
242
-| `post` processor | `afterExecute` modifier |
243
-| `schema` processor | `schema` modifier |
248
+| Previous | Current |
249
+|-------------------|-------------------------|
250
+| `pre` processor | `beforeExecute` modifier |
251
+| `post` processor | `afterExecute` modifier |
252
+| `schema` processor| `schema` modifier |
253
254
+The modifiers now leverage language-specific features to provide a more natural developer experience.
255
246
-Currently, the modifiers leverage the power of the respective language to provide a more natural developer experience.
247
-
248
-While previously, tool processors could be applied during SDK initialisation, fetching tools and even executing tools, we've reworked them such that;
249
-- For Chat Completion providers, modifiers are specified and applied while **executing tools**
250
-- For Agentic frameworks, modifiers are specified and applied while **fetching tools**
256
+While tool processors could previously be applied during SDK initialization, tool fetching, and tool execution, we have restructured them as follows:
257
+- **Chat Completion providers**: Modifiers are specified and applied during tool execution
258
+- **Agentic frameworks**: Modifiers are specified and applied during tool fetching
259
260
#### [Schema Modifiers](/docs/modifiers/schema-modifiers)
253
-Following example shows schema modifier. This is applicable across all providers.
261
+
262
+The following example demonstrates schema modifier usage, applicable across all providers:
263
264
<CodeGroup>
256
-```python Python (new)
265
+```python Python (current)
266
267
```
268
<SnippetCode
269
src="fern/snippets/migration/tool_modifiers.ts"
270
startLine={1}
271
endLine={20}
263
- title="TypeScript (new)"
272
+ title="TypeScript (current)"
273
/>
274
</CodeGroup>
275
276
#### [Before Modifiers](/docs/modifiers/before-execution)
268
-Following example shows creating and using a before modifier for a Chat Completion provider. For agentic frameworks, view the full before modifier documentation [here](/docs/modifiers/before-execution).
277
+
278
+The following example shows creating and using a before modifier for a Chat Completion provider. For agentic frameworks, view the [complete before modifier documentation](/docs/modifiers/before-execution):
279
280
<CodeGroup>
281
272
-```python Python (new)
282
+```python Python (current)
283
284
```
285
<SnippetCode
286
src="fern/snippets/migration/tool_modifiers.ts"
287
startLine={54}
288
endLine={70}
279
- title="TypeScript (new)"
289
+ title="TypeScript (current)"
290
/>
291
</CodeGroup>
292
293
#### [After Modifiers](/docs/modifiers/after-execution)
284
-Following example shows creating and using an after modifier for a Chat Completion provider. For agentic frameworks, view the full after modifier documentation [here](/docs/modifiers/after-execution).
294
+
295
+The following example shows creating and using an after modifier for a Chat Completion provider. For agentic frameworks, view the [complete after modifier documentation](/docs/modifiers/after-execution):
296
297
<CodeGroup>
298
288
-```python Python (new)
299
+```python Python (current)
300
301
```
302
<SnippetCode
303
src="fern/snippets/migration/tool_modifiers.ts"
304
startLine={71}
305
endLine={89}
295
- title="TypeScript (new)"
306
+ title="TypeScript (current)"
307
/>
308
</CodeGroup>
309
310
### Custom Tools
300
-The SDK still supports custom tools. [Defining tools from your methods](/docs/custom-tools#creating-a-custom-tool) is still possible and we recommend checking out the documentation [here](/docs/custom-tools#creating-a-custom-tool) for more information.
311
302
-Due to the change in the nature of SDK, creating custom tools that use Composio's managed authentication is slightly different. In the older SDK, you could create a custom tool like follows:
312
+The SDK continues to support custom tools. [Creating tools from your methods](/docs/custom-tools#creating-a-custom-tool) remains possible. We recommend reviewing the [detailed custom tools documentation](/docs/custom-tools#creating-a-custom-tool) for more information.
313
+
314
+Due to changes in the SDK architecture, creating custom tools that use Composio's managed authentication has been modified. In the previous SDK, you could create a custom tool as follows:
315
316
<CodeGroup>
317
<SnippetCode
@@ -308,7 +320,7 @@ Due to the change in the nature of SDK, creating custom tools that use Composio'
320
endLine={39}
321
highlightStart={14}
322
highlightEnd={17}
311
- title="Python (old)"
323
+ title="Python (previous)"
324
/>
325
326
<SnippetCode
@@ -317,11 +329,11 @@ Due to the change in the nature of SDK, creating custom tools that use Composio'
329
endLine={39}
330
highlightStart={16}
331
highlightEnd={20}
320
- title="TypeScript (old)"
332
+ title="TypeScript (previous)"
333
/>
334
</CodeGroup>
335
324
-The *execute tool request* method handles injecting the appropriate base URL and auth credentials for the tool.
336
+The *execute tool request* method handles injection of the appropriate base URL and authentication credentials for the tool:
337
338
<CodeGroup>
339
<SnippetCode
@@ -330,7 +342,7 @@ The *execute tool request* method handles injecting the appropriate base URL and
342
endLine={39}
343
highlightStart={22}
344
highlightEnd={22}
333
- title="Python (new)"
345
+ title="Python (current)"
346
/>
347
348
<SnippetCode
@@ -339,81 +351,81 @@ The *execute tool request* method handles injecting the appropriate base URL and
351
endLine={39}
352
highlightStart={17}
353
highlightEnd={17}
342
- title="TypeScript (new)"
354
+ title="TypeScript (current)"
355
/>
356
</CodeGroup>
357
346
-
347
-For more information, like executing custom tools, defining custom headers, query parameters, etc, please refer to the [Custom Tools](/docs/custom-tools) documentation.
358
+For more information, including executing custom tools and defining custom headers and query parameters, refer to the [Custom Tools](/docs/custom-tools) documentation.
359
360
### Auth configs (formerly integrations)
350
-Integrations are now called *auth configs*. While the name has changed, the concept remains largely the same.
361
352
-Auth configs store the configuration required for someone to authenticate with a given toolkit; like OAuth developer credentials, configurable base URLs, scopes etc.
362
+Integrations are now called *auth configs*. While the terminology has changed, the underlying concept remains the same.
363
354
-Instead of UUIDs, auth configs now use a `nano_id` instead.
364
+Auth configs store the configuration required for authentication with a given toolkit, including OAuth developer credentials, configurable base URLs, and scopes.
365
366
+Auth configs now use nano IDs instead of UUIDs:
367
357
-| Old (UUID) Example | New (Nano ID) Example |
358
-| :------------------------------- | :---------------------- |
359
-| `b7a9c1e2-3f4d-4a6b-8c2e-1d2f3a4b5c6d` | `ac_8x9w2l3k5m` |
368
+| Previous (UUID) Example | Current (Nano ID) Example |
369
+| :----------------------------------- | :------------------------ |
370
+| `b7a9c1e2-3f4d-4a6b-8c2e-1d2f3a4b5c6d` | `ac_8x9w2l3k5m` |
371
372
+We recommend storing auth config nano IDs in your database for connecting users to the appropriate auth configuration.
373
362
-The nano IDs for the auth configs, we recommend you store in a database such that they can be used to connect users to the appropriate auth config.
374
+For most use cases, you will create auth configs through the dashboard, and this process remains unchanged. Read more about [creating auth configs](/docs/authenticating-tools#creating-an-auth-config) and [customizing auth configs](/docs/custom-auth-configs).
375
364
-For most cases, you would use the dashboard to create auth configs and the process remains the same. Read more [on creating auth configs](/docs/authenticating-tools#creating-an-auth-config) and on [customizing the auth config](/docs/custom-auth-configs).
376
+Creating auth configs programmatically in the previous SDK:
377
366
-Programmatically creating auth configs in the old SDK:
378
<CodeGroup>
379
<SnippetCode
380
src="fern/snippets/migration/old_auth_config.py"
381
startLine={1}
382
endLine={15}
372
- title="Python (old)"
383
+ title="Python (previous)"
384
/>
385
<SnippetCode
386
src="fern/snippets/migration/old_auth_config.ts"
387
startLine={1}
388
endLine={15}
378
- title="TypeScript (old)"
389
+ title="TypeScript (previous)"
390
/>
391
</CodeGroup>
392
382
-Programmatically creating auth configs in the new SDK:
393
+Creating auth configs programmatically in the current SDK:
394
+
395
<CodeGroup>
396
<SnippetCode
397
src="fern/snippets/migration/new_auth_config.py"
398
startLine={1}
399
endLine={15}
388
- title="Python (new)"
400
+ title="Python (current)"
401
/>
402
<SnippetCode
403
src="fern/snippets/migration/new_auth_config.ts"
404
startLine={1}
405
endLine={15}
394
- title="TypeScript (new)"
406
+ title="TypeScript (current)"
407
/>
408
</CodeGroup>
409
398
-For using your own auth credentials etc, please refer to the [Programmatic Auth Configs](/programmatic-auth-configs#using-custom-auth) documentation.
399
-
400
-<Note>The callback URL for creating custom OAuth configs is now `https://backend.composio.dev/api/v3/toolkits/callback` previously it was `https://backend.composio.dev/api/v1/auth-apps/add`</Note>
410
+For using custom authentication credentials, refer to the [Programmatic Auth Configs](/programmatic-auth-configs#using-custom-auth) documentation.
411
412
+<Note>The callback URL for creating custom OAuth configs is now `https://backend.composio.dev/api/v3/toolkits/callback`. The previous URL was `https://backend.composio.dev/api/v1/auth-apps/add`.</Note>
413
414
### Connected accounts / User IDs
404
-The major change in how connected accounts and user IDs work is that user IDs are a much more surfaced concept as compared to entities previously.
415
406
-We've also simplified the process of connecting a user to a toolkit. Instead of having different ways and params to initiate a connection, the SDK and API both require only a `user_id` and `auth_config_id` to initiate a connection.
416
+The primary change in connected accounts and user IDs is that user IDs are now a more prominent concept compared to entities in previous versions.
417
+
418
+We have simplified the process of connecting a user to a toolkit. Instead of multiple methods and parameters for initiating a connection, both the SDK and API now require only a `user_id` and `auth_config_id` to initiate a connection.
419
408
-This is more explicit and plays well with the fact that developers may have multiple auth configs for a given toolkit.
420
+This approach is more explicit and works well with the ability for developers to have multiple auth configs for a given toolkit.
421
410
-Instead of UUIDs, connected accounts now use a `nano_id` instead.
422
+Connected accounts now use nano IDs instead of UUIDs:
423
412
-| Old (UUID) Example | New (Nano ID) Example |
413
-| :------------------------------- | :---------------------- |
414
-| `b7a9c1e2-3f4d-4a6b-8c2e-1d2f3a4b5c6d` | `ca_8x9w2l3k5m` |
424
+| Previous (UUID) Example | Current (Nano ID) Example |
425
+| :----------------------------------- | :------------------------ |
426
+| `b7a9c1e2-3f4d-4a6b-8c2e-1d2f3a4b5c6d` | `ca_8x9w2l3k5m` |
427
416
-Earlier you might be initiating a connection like this:
428
+Previously, you might have initiated a connection like this:
429
430
<CodeGroup>
431
<SnippetCode
@@ -422,7 +434,7 @@ Earlier you might be initiating a connection like this:
434
endLine={30}
435
highlightStart={11}
436
highlightEnd={16}
425
- title="Python (old)"
437
+ title="Python (previous)"
438
/>
439
<SnippetCode
440
src="fern/snippets/migration/old_connected_acc.ts"
@@ -430,11 +442,12 @@ Earlier you might be initiating a connection like this:
442
endLine={30}
443
highlightStart={8}
444
highlightEnd={13}
433
- title="TypeScript (old)"
445
+ title="TypeScript (previous)"
446
/>
447
</CodeGroup>
448
437
-The current process of initiating a connection is as follows:
449
+The current process for initiating a connection is as follows:
450
+
451
<CodeGroup>
452
<SnippetCode
453
src="fern/snippets/migration/new_connected_acc.py"
@@ -442,7 +455,7 @@ The current process of initiating a connection is as follows:
455
endLine={15}
456
highlightStart={8}
457
highlightEnd={11}
445
- title="Python (new)"
458
+ title="Python (current)"
459
/>
460
<SnippetCode
461
src="fern/snippets/migration/new_connected_acc.ts"
@@ -450,56 +463,58 @@ The current process of initiating a connection is as follows:
463
endLine={15}
464
highlightStart={8}
465
highlightEnd={11}
453
- title="TypeScript (new)"
466
+ title="TypeScript (current)"
467
/>
468
</CodeGroup>
469
470
### Triggers
458
-Composio still supports listening to events from apps using triggers through Websockets and Webhooks.
471
+
472
+Composio continues to support listening to application events using triggers through WebSockets and webhooks.
473
474
#### Creating triggers
461
-The process for creating triggers and specifying their configuration has been redesigned to be clearer and more intuitive.
475
463
-Some triggers require configuration to be specified, for example, the repository name for some GitHub triggers, channel name for Slack triggers, etc.
464
-You can view the configuration for a trigger as follows:
476
+The process for creating triggers and specifying their configuration has been redesigned for improved clarity and intuitiveness.
477
+
478
+Some triggers require configuration, such as repository names for GitHub triggers or channel names for Slack triggers. You can view the configuration for a trigger as follows:
479
480
<CodeGroup>
481
<SnippetCode
482
src="fern/snippets/typescript/triggers.ts"
483
startLine={1}
484
endLine={27}
471
- title="TypeScript (new)"
485
+ title="TypeScript (current)"
486
/>
487
</CodeGroup>
488
475
-You can then create the trigger with the appropriate configuration.
476
-- [ ] User IDs to be used here.
489
+You can then create the trigger with the appropriate configuration:
490
491
<CodeGroup>
492
<SnippetCode
493
src="fern/snippets/typescript/triggers.ts"
494
startLine={28}
495
endLine={40}
483
- title="TypeScript (new)"
496
+ title="TypeScript (current)"
497
/>
498
</CodeGroup>
499
500
#### Enabling/Disabling triggers
488
-You can enable or disable triggers either through the SDK or via the dashboard. The process for managing triggers in the dashboard remains unchanged.
501
+
502
+You can enable or disable triggers through either the SDK or the dashboard. The dashboard process remains unchanged.
503
504
Managing triggers with the SDK:
505
+
506
<CodeGroup>
507
<SnippetCode
508
src="fern/snippets/typescript/triggers.ts"
509
startLine={55}
510
endLine={56}
496
- title="TypeScript (new)"
511
+ title="TypeScript (current)"
512
/>
513
</CodeGroup>
514
500
-
515
#### Listening to triggers
502
-The recommended way to listen to triggers is through webhooks. Following are example routes for Next.js and FastAPI.
516
+
517
+We recommend listening to triggers through webhooks. The following are example routes for Next.js and FastAPI.
518
519
For development, you can also [listen to triggers through the SDK](/docs/using-triggers#subscribing-to-triggers-using-the-sdk-for-development).
520
@@ -514,39 +529,42 @@ For development, you can also [listen to triggers through the SDK](/docs/using-t
529
/>
530
</CodeGroup>
531
517
-
532
## 🚧 Coming Soon
533
+
534
### Local tools
520
-Previously, the Python SDK had a concept of *[local tools](https://github.com/ComposioHQ/composio/tree/master/python/composio/tools/local)*. These were tools that were defined in the SDK and consisted local shell and code related tools like; "clipboard", "sqltool", "shelltool" etc.
535
522
-This feature is a work in progress for both the Python and TypeScript SDKs with newly made tools built with better accuracy for agents.
536
+Previously, the Python SDK included *[local tools](https://github.com/ComposioHQ/composio/tree/master/python/composio/tools/local)*. These were tools defined within the SDK and consisted of local shell and code-related tools such as "clipboard", "sqltool", and "shelltool".
537
+
538
+This feature is currently in development for both Python and TypeScript SDKs, with newly created tools built for improved agent accuracy.
539
540
### Generated types
525
-In the previous Python SDK, one could generate the types for the tools using the CLI:
541
+
542
+In the previous Python SDK, you could generate types for tools using the CLI:
543
+
544
```bash
545
composio apps generate-types
546
```
547
530
-This would provide the app slugs and tool slugs with IntelliSense support.
548
+This provided app slugs and tool slugs with IntelliSense support:
549
532
-```python Python (old)
550
+```python Python (previous)
551
from composio_openai import ComposioToolSet, App, Action
552
553
print(App.GITHUB)
554
print(Action.GITHUB_CREATE_ISSUE)
555
```
556
539
-This feature is a work in progress for both the Python and TypeScript SDKs.
540
-
557
+This feature is currently in development for both Python and TypeScript SDKs.
558
559
## API Endpoints
543
-Below is a list of the important API endpoints that have changed. You may use this to quickly find the new v3 API endpoint to migrate to.
560
545
-<Note>This list is not exhaustive. Please refer to the [API Reference](/api-reference) for the full list of endpoints.</Note>
561
+The following table lists important API endpoints that have changed. You can use this reference to quickly find the new v3 API endpoint for migration:
562
+
563
+<Note>This list is not exhaustive. Please refer to the [API Reference](/api-reference) for the complete list of endpoints.</Note>
564
565
### Toolkits (formerly Apps)
566
549
-| Old Endpoint | New Endpoint |
567
+| Previous Endpoint | Current Endpoint |
568
| :--- | :--- |
569
| [`GET /api/v1/apps`](https://docs.composio.dev/api-reference/api-reference/apps/get-apps) | [`GET /api/v3/toolkits`](https://v3.docs.composio.dev/api-reference/toolkits/get-toolkits) |
570
| [`GET /api/v1/apps/list/categories`](https://docs.composio.dev/api-reference/api-reference/apps/list-app-categories) | [`GET /api/v3/toolkits/categories`](https://v3.docs.composio.dev/api-reference/toolkits/get-toolkits-categories) |
@@ -554,7 +572,7 @@ Below is a list of the important API endpoints that have changed. You may use th
572
573
### Tools (formerly Actions)
574
557
-| Old Endpoint | New Endpoint |
575
+| Previous Endpoint | Current Endpoint |
576
| :--- | :--- |
577
| [`GET /api/v2/actions`](https://docs.composio.dev/api-reference/api-reference/actions/list-actions-minimal-v-2) | [`GET /api/v3/tools`](https://v3.docs.composio.dev/api-reference/tools/get-tools) |
578
| [`GET /api/v2/actions/list/enums`](https://docs.composio.dev/api-reference/api-reference/actions/list-action-enums) | [`GET /api/v3/tools/enum`](https://v3.docs.composio.dev/api-reference/tools/get-tools-enum) |
@@ -565,7 +583,7 @@ Below is a list of the important API endpoints that have changed. You may use th
583
584
### Auth Configs (formerly Integrations/Connectors)
585
568
-| Old Endpoint | New Endpoint |
586
+| Previous Endpoint | Current Endpoint |
587
| :--- | :--- |
588
| [`GET /api/v1/integrations`](https://docs.composio.dev/api-reference/api-reference/integrations/list-all-connectors) | [`GET /api/v3/auth_configs`](https://v3.docs.composio.dev/api-reference/auth-configs/get-auth-configs) |
589
| [`POST /api/v1/integrations`](https://docs.composio.dev/api-reference/api-reference/integrations/create-connector) | [`POST /api/v3/auth_configs`](https://v3.docs.composio.dev/api-reference/auth-configs/post-auth-configs) |
@@ -576,7 +594,7 @@ Below is a list of the important API endpoints that have changed. You may use th
594
595
### Connected Accounts (formerly Connections)
596
579
-| Old Endpoint | New Endpoint |
597
+| Previous Endpoint | Current Endpoint |
598
| :--- | :--- |
599
| [`GET /api/v1/connectedAccounts`](https://docs.composio.dev/api-reference/api-reference/connections/get-connections) | [`GET /api/v3/connected_accounts`](https://v3.docs.composio.dev/api-reference/connected-accounts/get-connected-accounts) |
600
| [`POST /api/v1/connectedAccounts`](https://docs.composio.dev/api-reference/api-reference/connections/initiate-connection) | [`POST /api/v3/connected_accounts`](https://v3.docs.composio.dev/api-reference/connected-accounts/post-connected-accounts) |
@@ -589,7 +607,7 @@ Below is a list of the important API endpoints that have changed. You may use th
607
608
### Triggers
609
592
-| Old Endpoint | New Endpoint |
610
+| Previous Endpoint | Current Endpoint |
611
| :--- | :--- |
612
| [`GET /api/v1/triggers`](https://docs.composio.dev/api-reference/api-reference/triggers/list-triggers) | [`GET /api/v3/triggers_types`](https://v3.docs.composio.dev/api-reference/triggers/get-triggers-types) |
613
| [`GET /api/v1/triggers/list/enums`](https://docs.composio.dev/api-reference/api-reference/triggers/list-trigger-enums) | [`GET /api/v3/triggers_types/list/enum`](https://v3.docs.composio.dev/api-reference/triggers/get-triggers-types-list-enum)|
fern/snippets/migration/providers.py
+2
-6
@@ -1,15 +1,11 @@
1
from composio import Composio
2
-from composio_anthropic import AnthropicProvider
2
# from composio_langchain import LangchainProvider
3
5
-composio = Composio(provider=AnthropicProvider())
4
+composio = Composio()
5
# composio = Composio(provider=LangchainProvider())
6
8
-tools = composio.tools.get(user_id="user@acme.org", toolkits=["LINEAR"])
9
-
7
tools = composio.tools.get(
8
user_id="0001",
9
tools=["LINEAR_CREATE_LINEAR_ISSUE", "GITHUB_CREATE_COMMIT"]
10
)
14
-
15
-tools = composio.tools.get(user_id="john", search="hackernews posts")
11
+# tools returned is formatted for the provider. by default, OpenAI.
fern/snippets/migration/providers.ts
+8
-2
@@ -1,6 +1,12 @@
1
import { Composio } from '@composio/core';
2
-import { VercelProvider } from '@composio/vercel';
2
+// import { VercelProvider } from '@composio/vercel';
3
4
const composio = new Composio({
5
- provider: new VercelProvider(),
5
+ // provider: new VercelProvider(),
6
});
7
+// Can specify other providers too, like OpenAI, Anthropic, Vercel AI SDK.
8
+
9
+const tools = await composio.tools.get('user@example.com', {
10
+ tools: ['LINEAR_CREATE_LINEAR_ISSUE', 'GITHUB_CREATE_COMMIT'],
11
+});
12
+// tools returned is formatted for the provider. by default, OpenAI.
\ No newline at end of file