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 22, 08:15 UTC
fix(docs): update OpenAI Agents quickstart snippets
- Remove try/except blocks for cleaner quickstart code - Update model from gpt-5 to gpt-5.2 - Remove redundant comments Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 19, 2026 at 02:24 UTC
4b16b888170637468dc343f8f3c872bb384d30f6
1 file changed
+6
-15
docs/content/docs/quickstart.mdx
+6
-15
@@ -65,11 +65,10 @@ user_id = "user_123"
65
session = composio.create(user_id=user_id)
66
tools = session.tools()
67
68
-# Configure agent with Composio tools
68
agent = Agent(
69
name="Personal Assistant",
70
instructions="You are a helpful personal assistant. Use Composio tools to take action.",
72
- model="gpt-5",
71
+ model="gpt-5.2",
72
tools=tools,
73
)
74
@@ -91,11 +90,8 @@ while True:
90
break
91
92
print("Assistant: ", end="", flush=True)
94
- try:
95
- result = Runner.run_sync(starting_agent=agent, input=user_input, session=memory)
96
- print(f"{result.final_output}\n")
97
- except Exception as e:
98
- print(f"\n[Error]: {e}")
93
+ result = Runner.run_sync(starting_agent=agent, input=user_input, session=memory)
94
+ print(f"{result.final_output}\n")
95
```
96
</Tab>
97
<Tab value="TypeScript">
@@ -209,11 +205,10 @@ composio = Composio()
205
user_id = "user_123"
206
session = composio.create(user_id=user_id)
207
212
-# Configure agent with Composio MCP server
208
agent = Agent(
209
name="Personal Assistant",
210
instructions="You are a helpful personal assistant. Use Composio tools to take action.",
216
- model="gpt-5",
211
+ model="gpt-5.2",
212
tools=[
213
HostedMCPTool(
214
tool_config={
@@ -227,7 +222,6 @@ agent = Agent(
222
],
223
)
224
230
-# Memory for multi-turn conversation
225
memory = SQLiteSession(user_id)
226
227
print("""
@@ -245,11 +239,8 @@ while True:
239
break
240
241
print("Assistant: ", end="", flush=True)
248
- try:
249
- result = Runner.run_sync(starting_agent=agent, input=user_input, session=memory)
250
- print(f"{result.final_output}\n")
251
- except Exception as e:
252
- print(f"\n[Error]: {e}")
242
+ result = Runner.run_sync(starting_agent=agent, input=user_input, session=memory)
243
+ print(f"{result.final_output}\n")
244
```
245
</Tab>
246
<Tab value="TypeScript">