@devries-cameron20 / composio-1 / commits / 565c04e9d
Fork 0

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

chore: update package versions and modify documentation

- Updated versions of several Composio packages to 0.8.0 and 1.6.0 in uv.lock. - Changed font settings in docs.yml from Roobert to Inter. - Added CSS compilation and watch scripts to package.json. - Removed unused CSS styles and added new styles for callouts in input.css. - Enhanced migration guide and after-execution modifiers documentation with new examples.

balyan.sid@gmail.com committed Jul 22, 2025 at 22:45 UTC 565c04e9d913ea4a7d0a9905aa6c42a47de0918c
6 files changed +87 -34
fern/assets/Inter-Medium.woff2
Binary files /dev/null and b/fern/assets/Inter-Medium.woff2 differ
fern/docs.yml
+17 -11
@@ -19,19 +19,19 @@ js:
19 strategy: afterInteractive
20 typography:
21 bodyFont:
22 - name: Roobert
22 + name: Inter
23 paths:
24 - - path: assets/Roobert-Medium.woff2
24 + - path: assets/Inter-Medium.woff2
25 weight: '500'
26 - - path: assets/Roobert-Regular.woff2
27 - weight: '400'
26 + # - path: assets/Roobert-Regular.woff2
27 + # weight: '400'
28 headingsFont:
29 - name: Roobert
29 + name: Inter
30 paths:
31 - - path: assets/Roobert-Medium.woff2
31 + - path: assets/Inter-Medium.woff2
32 weight: '500'
33 - - path: assets/Roobert-Regular.woff2
34 - weight: '400'
33 + # - path: assets/Roobert-Regular.woff2
34 + # weight: '400'
35 codeFont:
36 name: IBM Plex Mono
37 paths:
@@ -52,11 +52,17 @@ layout:
52 sidebar-width: 298px
53 colors:
54 accent-primary:
55 - light: '#4762DA'
56 - dark: '#9EB6FF'
55 + light: '#FF782F'
56 + dark: '#FF782F'
57 background:
58 light: '#F7F4F0'
59 - dark: '#0A0C12'
59 + dark: '#0F0602'
60 + sidebar-background:
61 + light: '#F3EFEB'
62 + dark: '#160F0C'
63 + header-background:
64 + light: '#F3EFEB'
65 + dark: '#160F0C'
66 analytics:
67 posthog:
68 api-key: ${POSTHOG_API_KEY}
fern/package.json
+3 -1
@@ -13,12 +13,14 @@
13 "sdkdocs": "pnpm run sdkdocs:ts && pnpm run sdkdocs:python",
14 "sdkdocs:ts": "pnpm exec typedoc",
15 "sdkdocs:python": "uv run python generators/python_sdk/generate_docs.py",
16 + "css:compile": "npx tailwindcss -i ./assets/input.css -o ./dist/output.css",
17 + "css:watch": "npx tailwindcss -i ./assets/input.css -o ./dist/output.css --watch",
18 "api:pull": "bash scripts/pull-openapi-spec.sh",
19 "snippets:build": "bun run scripts/build-snippets.ts",
20 "snippets:dev": "bun watch scripts/build-snippets.ts --watch",
21 "add-og": "uv run scripts/add_og_imgs.py",
22 "check": "fern check",
21 - "dev": "bun run scripts/build-snippets.ts && (bun run scripts/build-snippets.ts --watch & fern docs dev)",
23 + "dev": "bun run scripts/build-snippets.ts && (bun run scripts/build-snippets.ts --watch & fern docs dev) && pnpm css:watch",
24 "dev:docs": "fern docs dev",
25 "links": "fern docs broken-links",
26 "build": "echo 'Build orchestrated by Turbo'",
fern/pages/src/migration-guide.mdx
+53 -9
@@ -266,12 +266,33 @@ The following example demonstrates schema modifier usage, applicable across all
266
267 <CodeGroup>
268 ```python Python (current)
269 -
269 +from composio import Composio, schema_modifier
270 +from composio.types import Tool
271 +
272 +user_id = "your@email.com"
273 +
274 +@schema_modifier(tools=["HACKERNEWS_GET_LATEST_POSTS"])
275 +def modify_schema(
276 + tool: str,
277 + toolkit: str,
278 + schema: Tool,
279 +) -> Tool:
280 + _ = schema.input_parameters["properties"].pop("page", None)
281 + schema.input_parameters["required"] = ["size"]
282 + return schema
283 +
284 +tools = composio.tools.get(
285 + user_id=user_id,
286 + tools=["HACKERNEWS_GET_LATEST_POSTS", "HACKERNEWS_GET_USER"],
287 + modifiers=[
288 + modify_schema,
289 + ]
290 +)
291 ```
292 <SnippetCode
293 src="fern/snippets/migration/tool_modifiers.ts"
294 startLine={1}
274 - endLine={20}
295 + endLine={26}
296 title="TypeScript (current)"
297 />
298 </CodeGroup>
@@ -281,14 +302,24 @@ The following example demonstrates schema modifier usage, applicable across all
302 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):
303
304 <CodeGroup>
284 -
305 ```python Python (current)
286 -
306 +@before_execute(tools=["HACKERNEWS_GET_LATEST_POSTS"])
307 +def before_execute_modifier(
308 + tool: str,
309 + toolkit: str,
310 + params: ToolExecuteParams,
311 +) -> ToolExecuteParams:
312 + params["arguments"]["size"] = 1
313 + return params
314 +
315 +
316 +# Get tools
317 +tools = composio.tools.get(user_id=user_id, slug="HACKERNEWS_GET_LATEST_POSTS")
318 ```
319 <SnippetCode
320 src="fern/snippets/migration/tool_modifiers.ts"
290 - startLine={54}
291 - endLine={70}
321 + startLine={53}
322 + endLine={68}
323 title="TypeScript (current)"
324 />
325 </CodeGroup>
@@ -300,12 +331,25 @@ The following example shows creating and using an after modifier for a Chat Comp
331 <CodeGroup>
332
333 ```python Python (current)
303 -
334 +@after_execute(tools=["HACKERNEWS_GET_USER"])
335 +def after_execute_modifier(
336 + tool: str,
337 + toolkit: str,
338 + response: ToolExecutionResponse,
339 +) -> ToolExecutionResponse:
340 + return {
341 + **response,
342 + "data": {
343 + "karma": response["data"]["karma"],
344 + },
345 + }
346 +
347 +tools = composio.tools.get(user_id=user_id, slug="HACKERNEWS_GET_USER")
348 ```
349 <SnippetCode
350 src="fern/snippets/migration/tool_modifiers.ts"
307 - startLine={71}
308 - endLine={89}
351 + startLine={69}
352 + endLine={90}
353 title="TypeScript (current)"
354 />
355 </CodeGroup>
fern/pages/src/tool-calling/after-execution-modifiers.mdx
+1
@@ -50,6 +50,7 @@ def after_execute_modifier(
50 },
51 }
52
53 +tools = composio.tools.get(user_id=user_id, slug="HACKERNEWS_GET_USER")
54 # Get response from the LLM
55 response = openai_client.chat.completions.create(
56 model="gpt-4o-mini",
uv.lock
+13 -13
@@ -467,7 +467,7 @@ wheels = [
467
468 [[package]]
469 name = "composio"
470 -version = "1.0.0rc10"
470 +version = "0.8.0"
471 source = { virtual = "python" }
472 dependencies = [
473 { name = "composio-client" },
@@ -492,7 +492,7 @@ dev = [
492
493 [package.metadata]
494 requires-dist = [
495 - { name = "composio-client", specifier = "==1.4.0" },
495 + { name = "composio-client", specifier = "==1.6.0" },
496 { name = "openai" },
497 { name = "pydantic", specifier = ">=2.6.4" },
498 { name = "pysher", specifier = ">=1.0.8" },
@@ -514,7 +514,7 @@ dev = [
514
515 [[package]]
516 name = "composio-anthropic"
517 -version = "1.0.0rc10"
517 +version = "0.8.0"
518 source = { virtual = "python/providers/anthropic" }
519 dependencies = [
520 { name = "anthropic" },
@@ -529,7 +529,7 @@ requires-dist = [
529
530 [[package]]
531 name = "composio-client"
532 -version = "1.4.0"
532 +version = "1.6.0"
533 source = { registry = "https://pypi.org/simple" }
534 dependencies = [
535 { name = "anyio" },
@@ -539,14 +539,14 @@ dependencies = [
539 { name = "sniffio" },
540 { name = "typing-extensions" },
541 ]
542 -sdist = { url = "https://files.pythonhosted.org/packages/35/35/c6bb5ce5f6b602efad86e4777a16ded43c51d9cb7f653fc93ab03e26741b/composio_client-1.4.0.tar.gz", hash = "sha256:c5524a02d16dabcdb71ae77e5fc00016dd4a447e36c9cb9ef7ff3ae8e87686d6", size = 167300 }
542 +sdist = { url = "https://files.pythonhosted.org/packages/21/a2/71e97c8f9c0c4fb0a1734417f629c83717c5f973b0cd8ccb95b803dd9224/composio_client-1.6.0.tar.gz", hash = "sha256:2adaf9bdaf449384d1d32f9361af20009c0675c68381cd9e9a4234f08969ab23", size = 169235 }
543 wheels = [
544 - { url = "https://files.pythonhosted.org/packages/65/01/83484fbce94e5d67c13920911dc8c7a41413ef0d7baded21ec40185000aa/composio_client-1.4.0-py3-none-any.whl", hash = "sha256:81e8132b35cc9a675f4196b9126f02721d03f56125bcad9a74b720a01bfd40d0", size = 207495 },
544 + { url = "https://files.pythonhosted.org/packages/4f/2c/19f4ff86f0b3c5fb442e70185ead4feae6237abecfb35f109c9ccc2a6d5e/composio_client-1.6.0-py3-none-any.whl", hash = "sha256:e32055eeae8b49e7b94329808604f849e74bc557a453d3e37b37fe5cb627930b", size = 199273 },
545 ]
546
547 [[package]]
548 name = "composio-crewai"
549 -version = "1.0.0rc10"
549 +version = "0.8.0"
550 source = { virtual = "python/providers/crewai" }
551 dependencies = [
552 { name = "composio" },
@@ -561,7 +561,7 @@ requires-dist = [
561
562 [[package]]
563 name = "composio-gemini"
564 -version = "1.0.0rc10"
564 +version = "0.8.0"
565 source = { virtual = "python/providers/gemini" }
566 dependencies = [
567 { name = "composio" },
@@ -576,7 +576,7 @@ requires-dist = [
576
577 [[package]]
578 name = "composio-google"
579 -version = "1.0.0rc10"
579 +version = "0.8.0"
580 source = { virtual = "python/providers/google" }
581 dependencies = [
582 { name = "composio" },
@@ -591,7 +591,7 @@ requires-dist = [
591
592 [[package]]
593 name = "composio-google-adk"
594 -version = "1.0.0rc10"
594 +version = "0.8.0"
595 source = { virtual = "python/providers/google_adk" }
596 dependencies = [
597 { name = "composio" },
@@ -606,7 +606,7 @@ requires-dist = [
606
607 [[package]]
608 name = "composio-langchain"
609 -version = "1.0.0rc10"
609 +version = "0.8.0"
610 source = { virtual = "python/providers/langchain" }
611 dependencies = [
612 { name = "composio" },
@@ -621,7 +621,7 @@ requires-dist = [
621
622 [[package]]
623 name = "composio-openai"
624 -version = "1.0.0rc10"
624 +version = "0.8.0"
625 source = { virtual = "python/providers/openai" }
626 dependencies = [
627 { name = "composio" },
@@ -636,7 +636,7 @@ requires-dist = [
636
637 [[package]]
638 name = "composio-openai-agents"
639 -version = "1.0.0rc10"
639 +version = "0.8.0"
640 source = { virtual = "python/providers/openai_agents" }
641 dependencies = [
642 { name = "composio" },