@devries-cameron20 / composio Mirror · read-only / commits / 778e39b4b
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.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 23, 00:30 UTC

fix: anthropic tool-calling demo

angrybayblade committed Jun 18, 2025 at 14:32 UTC 778e39b4b7ca71b4caf98d85def62c44d6520ee8
2 files changed +2 -4
fern/docs/tool-calling/executing-tools.mdx
+1 -1
@@ -60,7 +60,7 @@ anthropic_client = anthropic.Anthropic()
60 composio = Composio(provider=AnthropicProvider())
61
62 # Get GitHub tools that are pre-configured
63 -tools = composio.tools.get(user_id="default", toolkits=["GITHUB_GET_THE_ZEN_OF_GITHUB"])
63 +tools = composio.tools.get(user_id="default", tools=["GITHUB_GET_THE_ZEN_OF_GITHUB"])
64
65 # Get response from the LLM
66 response = anthropic_client.messages.create(
fern/snippets/migration/new_execute_tools.py
+1 -3
@@ -4,9 +4,7 @@ from openai import OpenAI
4 openai_client = OpenAI()
5 composio = Composio()
6
7 -tools = composio.tools.get(user_id="user@acme.com",
8 - toolkits=["GITHUB_GET_THE_ZEN_OF_GITHUB"])
9 -
7 +tools = composio.tools.get(user_id="user@acme.com", tools=["GITHUB_GET_THE_ZEN_OF_GITHUB"])
8 response = openai_client.chat.completions.create(
9 model="gpt-4.1",
10 messages=[{"role": "user", "content": "gimme some zen."}],