Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 02:00 UTC
fix: add @noErrors for twoslash, zod/v3 -> zod
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dhawal Upadhyay committed
Mar 19, 2026 at 08:50 UTC
6928edebfa05207a56820752688170b41c692534
1 file changed
+7
-3
docs/content/docs/configuring-sessions.mdx
+7
-3
@@ -176,8 +176,9 @@ Custom tools let you define local tools that run in-process alongside remote Com
176
A tool that doesn't need any Composio-managed authentication:
177
178
```ts
179
+// @noErrors
180
import { experimental_createTool } from "@composio/core";
180
-import { z } from "zod/v3";
181
+import { z } from "zod";
182
183
const getUser = experimental_createTool("GET_USER", {
184
name: "Get user",
@@ -197,8 +198,9 @@ const getUser = experimental_createTool("GET_USER", {
198
A tool that inherits authentication from an existing Composio toolkit. Use `extendsToolkit` to specify which toolkit, then call APIs through `ctx.proxyExecute()` or invoke other tools via `ctx.execute()`:
199
200
```ts
201
+// @noErrors
202
import { experimental_createTool } from "@composio/core";
201
-import { z } from "zod/v3";
203
+import { z } from "zod";
204
205
const createDraft = experimental_createTool("CREATE_DRAFT", {
206
name: "Create Gmail draft",
@@ -231,8 +233,9 @@ The `SessionContext` (`ctx`) provides:
233
Group related tools under a namespace using `experimental_createToolkit`:
234
235
```ts
236
+// @noErrors
237
import { experimental_createTool, experimental_createToolkit } from "@composio/core";
235
-import { z } from "zod/v3";
238
+import { z } from "zod";
239
240
const setRole = experimental_createTool("SET_ROLE", {
241
name: "Set role",
@@ -258,6 +261,7 @@ Tools inside a toolkit must **not** have `extendsToolkit` set — they inherit t
261
Pass custom tools and toolkits via the `experimental` option:
262
263
```ts
264
+// @noErrors
265
import { Composio } from "@composio/core";
266
267
const composio = new Composio();