@devries-cameron20 / composio-1 / commits / 673decd52
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.

docs: Simplify Anthropic TS code, use claude-opus-4-6, add OpenAI cross-reference

- Anthropic: Use provider's handleToolCalls() which returns pre-formatted MessageParam[] instead of manual tool_result construction - Anthropic: Switch model to claude-opus-4-6 in all code examples - Anthropic: Fix Python print loop to use block.type == "text" - OpenAI: Add cross-reference callout linking to OpenAI Agents SDK page Both Python and TypeScript Anthropic examples tested end-to-end. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmithamallesh committed Feb 17, 2026 at 13:21 UTC 673decd52eef2bbb82425a2d89b13b6c00dbc98a
2 files changed +11 -17
docs/content/docs/providers/anthropic.mdx
+7 -17
@@ -64,7 +64,7 @@ messages = [
64 ]
65
66 response = client.messages.create(
67 - model="claude-sonnet-4-5-20250929",
67 + model="claude-opus-4-6",
68 max_tokens=4096,
69 tools=tools,
70 messages=messages,
@@ -83,7 +83,7 @@ while response.stop_reason == "tool_use":
83 ]
84 })
85 response = client.messages.create(
86 - model="claude-sonnet-4-5-20250929",
86 + model="claude-opus-4-6",
87 max_tokens=4096,
88 tools=tools,
89 messages=messages,
@@ -91,7 +91,7 @@ while response.stop_reason == "tool_use":
91
92 # Print final response
93 for block in response.content:
94 - if hasattr(block, "text"):
94 + if block.type == "text":
95 print(block.text)
96 ```
97 </Tab>
@@ -118,7 +118,7 @@ const messages: Anthropic.MessageParam[] = [
118 ];
119
120 let response = await client.messages.create({
121 - model: "claude-sonnet-4-5-20250929",
121 + model: "claude-opus-4-6",
122 max_tokens: 4096,
123 tools: tools,
124 messages: messages,
@@ -126,21 +126,11 @@ let response = await client.messages.create({
126
127 // Agentic loop — keep executing tool calls until the model responds with text
128 while (response.stop_reason === "tool_use") {
129 - const toolUseBlocks = response.content.filter(
130 - (block): block is Anthropic.ToolUseBlock => block.type === "tool_use"
131 - );
132 - const results = await composio.provider.handleToolCalls("user_123", response);
129 + const toolResults = await composio.provider.handleToolCalls("user_123", response);
130 messages.push({ role: "assistant", content: response.content });
134 - messages.push({
135 - role: "user",
136 - content: results.map((result, i) => ({
137 - type: "tool_result" as const,
138 - tool_use_id: toolUseBlocks[i].id,
139 - content: JSON.stringify(result),
140 - })),
141 - });
131 + messages.push(...toolResults);
132 response = await client.messages.create({
143 - model: "claude-sonnet-4-5-20250929",
133 + model: "claude-opus-4-6",
134 max_tokens: 4096,
135 tools: tools,
136 messages: messages,
docs/content/docs/providers/openai.mdx
+4
@@ -6,6 +6,10 @@ keywords: [gpt, responses api, chat completions]
6
7 The OpenAI Provider is the default provider for the Composio SDK. It transforms Composio tools into a format compatible with OpenAI's function calling capabilities through both the Responses and Chat Completion APIs.
8
9 +<Callout type="info">
10 +Looking for the OpenAI Agents SDK? See the [OpenAI Agents SDK](/docs/providers/openai-agents) provider page.
11 +</Callout>
12 +
13 <IntegrationTabs tabs={[
14 { value: "responses", label: "Responses API" },
15 { value: "chat", label: "Chat Completions" },