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.

fix: anthropic tool-calling demo

angrybayblade778e39b4b7ca
diff --git a/fern/docs/tool-calling/executing-tools.mdx b/fern/docs/tool-calling/executing-tools.mdx
index 2d0cfb23c..53777dcb1 100644
--- a/fern/docs/tool-calling/executing-tools.mdx
+++ b/fern/docs/tool-calling/executing-tools.mdx
@@ -60,7 +60,7 @@ anthropic_client = anthropic.Anthropic()
composio = Composio(provider=AnthropicProvider())
# Get GitHub tools that are pre-configured
-tools = composio.tools.get(user_id="default", toolkits=["GITHUB_GET_THE_ZEN_OF_GITHUB"])
+tools = composio.tools.get(user_id="default", tools=["GITHUB_GET_THE_ZEN_OF_GITHUB"])
# Get response from the LLM
response = anthropic_client.messages.create(
diff --git a/fern/snippets/migration/new_execute_tools.py b/fern/snippets/migration/new_execute_tools.py
index 0358c1529..3f73dd0ff 100644
--- a/fern/snippets/migration/new_execute_tools.py
+++ b/fern/snippets/migration/new_execute_tools.py
@@ -4,9 +4,7 @@ from openai import OpenAI
openai_client = OpenAI()
composio = Composio()
-tools = composio.tools.get(user_id="[email protected]",
- toolkits=["GITHUB_GET_THE_ZEN_OF_GITHUB"])
-
+tools = composio.tools.get(user_id="[email protected]", tools=["GITHUB_GET_THE_ZEN_OF_GITHUB"])
response = openai_client.chat.completions.create(
model="gpt-4.1",
messages=[{"role": "user", "content": "gimme some zen."}],