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.

chore: update package versions and modify documentation

[email protected]565c04e9d913
diff --git a/fern/assets/Inter-Medium.woff2 b/fern/assets/Inter-Medium.woff2
new file mode 100644
index 000000000..fdfdcc699
Binary files /dev/null and b/fern/assets/Inter-Medium.woff2 differ
diff --git a/fern/docs.yml b/fern/docs.yml
index 72bd85168..8948b8bb8 100644
--- a/fern/docs.yml
+++ b/fern/docs.yml
@@ -19,19 +19,19 @@ js:
strategy: afterInteractive
typography:
bodyFont:
- name: Roobert
+ name: Inter
paths:
- - path: assets/Roobert-Medium.woff2
+ - path: assets/Inter-Medium.woff2
weight: '500'
- - path: assets/Roobert-Regular.woff2
- weight: '400'
+ # - path: assets/Roobert-Regular.woff2
+ # weight: '400'
headingsFont:
- name: Roobert
+ name: Inter
paths:
- - path: assets/Roobert-Medium.woff2
+ - path: assets/Inter-Medium.woff2
weight: '500'
- - path: assets/Roobert-Regular.woff2
- weight: '400'
+ # - path: assets/Roobert-Regular.woff2
+ # weight: '400'
codeFont:
name: IBM Plex Mono
paths:
@@ -52,11 +52,17 @@ layout:
sidebar-width: 298px
colors:
accent-primary:
- light: '#4762DA'
- dark: '#9EB6FF'
+ light: '#FF782F'
+ dark: '#FF782F'
background:
light: '#F7F4F0'
- dark: '#0A0C12'
+ dark: '#0F0602'
+ sidebar-background:
+ light: '#F3EFEB'
+ dark: '#160F0C'
+ header-background:
+ light: '#F3EFEB'
+ dark: '#160F0C'
analytics:
posthog:
api-key: ${POSTHOG_API_KEY}
diff --git a/fern/package.json b/fern/package.json
index 7c1b45c5e..e0e4e88e1 100644
--- a/fern/package.json
+++ b/fern/package.json
@@ -13,12 +13,14 @@
"sdkdocs": "pnpm run sdkdocs:ts && pnpm run sdkdocs:python",
"sdkdocs:ts": "pnpm exec typedoc",
"sdkdocs:python": "uv run python generators/python_sdk/generate_docs.py",
+ "css:compile": "npx tailwindcss -i ./assets/input.css -o ./dist/output.css",
+ "css:watch": "npx tailwindcss -i ./assets/input.css -o ./dist/output.css --watch",
"api:pull": "bash scripts/pull-openapi-spec.sh",
"snippets:build": "bun run scripts/build-snippets.ts",
"snippets:dev": "bun watch scripts/build-snippets.ts --watch",
"add-og": "uv run scripts/add_og_imgs.py",
"check": "fern check",
- "dev": "bun run scripts/build-snippets.ts && (bun run scripts/build-snippets.ts --watch & fern docs dev)",
+ "dev": "bun run scripts/build-snippets.ts && (bun run scripts/build-snippets.ts --watch & fern docs dev) && pnpm css:watch",
"dev:docs": "fern docs dev",
"links": "fern docs broken-links",
"build": "echo 'Build orchestrated by Turbo'",
diff --git a/fern/pages/src/migration-guide.mdx b/fern/pages/src/migration-guide.mdx
index 91fe2775e..bca4227c1 100644
--- a/fern/pages/src/migration-guide.mdx
+++ b/fern/pages/src/migration-guide.mdx
@@ -266,12 +266,33 @@ The following example demonstrates schema modifier usage, applicable across all
<CodeGroup>
```python Python (current)
-
+from composio import Composio, schema_modifier
+from composio.types import Tool
+
+user_id = "[email protected]"
+
+@schema_modifier(tools=["HACKERNEWS_GET_LATEST_POSTS"])
+def modify_schema(
+ tool: str,
+ toolkit: str,
+ schema: Tool,
+) -> Tool:
+ _ = schema.input_parameters["properties"].pop("page", None)
+ schema.input_parameters["required"] = ["size"]
+ return schema
+
+tools = composio.tools.get(
+ user_id=user_id,
+ tools=["HACKERNEWS_GET_LATEST_POSTS", "HACKERNEWS_GET_USER"],
+ modifiers=[
+ modify_schema,
+ ]
+)
```
<SnippetCode
src="fern/snippets/migration/tool_modifiers.ts"
startLine={1}
- endLine={20}
+ endLine={26}
title="TypeScript (current)"
/>
</CodeGroup>
@@ -281,14 +302,24 @@ The following example demonstrates schema modifier usage, applicable across all
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):
<CodeGroup>
-
```python Python (current)
-
+@before_execute(tools=["HACKERNEWS_GET_LATEST_POSTS"])
+def before_execute_modifier(
+ tool: str,
+ toolkit: str,
+ params: ToolExecuteParams,
+) -> ToolExecuteParams:
+ params["arguments"]["size"] = 1
+ return params
+
+
+# Get tools
+tools = composio.tools.get(user_id=user_id, slug="HACKERNEWS_GET_LATEST_POSTS")
```
<SnippetCode
src="fern/snippets/migration/tool_modifiers.ts"
- startLine={54}
- endLine={70}
+ startLine={53}
+ endLine={68}
title="TypeScript (current)"
/>
</CodeGroup>
@@ -300,12 +331,25 @@ The following example shows creating and using an after modifier for a Chat Comp
<CodeGroup>
```python Python (current)
-
+@after_execute(tools=["HACKERNEWS_GET_USER"])
+def after_execute_modifier(
+ tool: str,
+ toolkit: str,
+ response: ToolExecutionResponse,
+) -> ToolExecutionResponse:
+ return {
+ **response,
+ "data": {
+ "karma": response["data"]["karma"],
+ },
+ }
+
+tools = composio.tools.get(user_id=user_id, slug="HACKERNEWS_GET_USER")
```
<SnippetCode
src="fern/snippets/migration/tool_modifiers.ts"
- startLine={71}
- endLine={89}
+ startLine={69}
+ endLine={90}
title="TypeScript (current)"
/>
</CodeGroup>
diff --git a/fern/pages/src/tool-calling/after-execution-modifiers.mdx b/fern/pages/src/tool-calling/after-execution-modifiers.mdx
index 4900318e9..bf5a899ce 100644
--- a/fern/pages/src/tool-calling/after-execution-modifiers.mdx
+++ b/fern/pages/src/tool-calling/after-execution-modifiers.mdx
@@ -50,6 +50,7 @@ def after_execute_modifier(
},
}
+tools = composio.tools.get(user_id=user_id, slug="HACKERNEWS_GET_USER")
# Get response from the LLM
response = openai_client.chat.completions.create(
model="gpt-4o-mini",
diff --git a/uv.lock b/uv.lock
index 4a9b6338b..1615ff3bc 100644
--- a/uv.lock
+++ b/uv.lock
@@ -467,7 +467,7 @@ wheels = [
[[package]]
name = "composio"
-version = "1.0.0rc10"
+version = "0.8.0"
source = { virtual = "python" }
dependencies = [
{ name = "composio-client" },
@@ -492,7 +492,7 @@ dev = [
[package.metadata]
requires-dist = [
- { name = "composio-client", specifier = "==1.4.0" },
+ { name = "composio-client", specifier = "==1.6.0" },
{ name = "openai" },
{ name = "pydantic", specifier = ">=2.6.4" },
{ name = "pysher", specifier = ">=1.0.8" },
@@ -514,7 +514,7 @@ dev = [
[[package]]
name = "composio-anthropic"
-version = "1.0.0rc10"
+version = "0.8.0"
source = { virtual = "python/providers/anthropic" }
dependencies = [
{ name = "anthropic" },
@@ -529,7 +529,7 @@ requires-dist = [
[[package]]
name = "composio-client"
-version = "1.4.0"
+version = "1.6.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "anyio" },
@@ -539,14 +539,14 @@ dependencies = [
{ name = "sniffio" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/35/35/c6bb5ce5f6b602efad86e4777a16ded43c51d9cb7f653fc93ab03e26741b/composio_client-1.4.0.tar.gz", hash = "sha256:c5524a02d16dabcdb71ae77e5fc00016dd4a447e36c9cb9ef7ff3ae8e87686d6", size = 167300 }
+sdist = { url = "https://files.pythonhosted.org/packages/21/a2/71e97c8f9c0c4fb0a1734417f629c83717c5f973b0cd8ccb95b803dd9224/composio_client-1.6.0.tar.gz", hash = "sha256:2adaf9bdaf449384d1d32f9361af20009c0675c68381cd9e9a4234f08969ab23", size = 169235 }
wheels = [
- { url = "https://files.pythonhosted.org/packages/65/01/83484fbce94e5d67c13920911dc8c7a41413ef0d7baded21ec40185000aa/composio_client-1.4.0-py3-none-any.whl", hash = "sha256:81e8132b35cc9a675f4196b9126f02721d03f56125bcad9a74b720a01bfd40d0", size = 207495 },
+ { url = "https://files.pythonhosted.org/packages/4f/2c/19f4ff86f0b3c5fb442e70185ead4feae6237abecfb35f109c9ccc2a6d5e/composio_client-1.6.0-py3-none-any.whl", hash = "sha256:e32055eeae8b49e7b94329808604f849e74bc557a453d3e37b37fe5cb627930b", size = 199273 },
]
[[package]]
name = "composio-crewai"
-version = "1.0.0rc10"
+version = "0.8.0"
source = { virtual = "python/providers/crewai" }
dependencies = [
{ name = "composio" },
@@ -561,7 +561,7 @@ requires-dist = [
[[package]]
name = "composio-gemini"
-version = "1.0.0rc10"
+version = "0.8.0"
source = { virtual = "python/providers/gemini" }
dependencies = [
{ name = "composio" },
@@ -576,7 +576,7 @@ requires-dist = [
[[package]]
name = "composio-google"
-version = "1.0.0rc10"
+version = "0.8.0"
source = { virtual = "python/providers/google" }
dependencies = [
{ name = "composio" },
@@ -591,7 +591,7 @@ requires-dist = [
[[package]]
name = "composio-google-adk"
-version = "1.0.0rc10"
+version = "0.8.0"
source = { virtual = "python/providers/google_adk" }
dependencies = [
{ name = "composio" },
@@ -606,7 +606,7 @@ requires-dist = [
[[package]]
name = "composio-langchain"
-version = "1.0.0rc10"
+version = "0.8.0"
source = { virtual = "python/providers/langchain" }
dependencies = [
{ name = "composio" },
@@ -621,7 +621,7 @@ requires-dist = [
[[package]]
name = "composio-openai"
-version = "1.0.0rc10"
+version = "0.8.0"
source = { virtual = "python/providers/openai" }
dependencies = [
{ name = "composio" },
@@ -636,7 +636,7 @@ requires-dist = [
[[package]]
name = "composio-openai-agents"
-version = "1.0.0rc10"
+version = "0.8.0"
source = { virtual = "python/providers/openai_agents" }
dependencies = [
{ name = "composio" },