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 21, 16:00 UTC
docs: expand the Platform code mock with the real quickstart lines
Show the actual six-line quickstart snippet (`import Composio` + `import OpenAIAgentsProvider` + `new Composio({ provider })` + `composio.create(userId)` + `session.tools()` + `new Agent({ … })`), tightened to 11.5px / 1.75 leading so it fits inside the same left-pane height as the For You card. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Malay Vasa committed
Aug 17, 2026 at 21:17 UTC
d47ed21a4325259a043547bba445fc8855b9c9d7
1 file changed
+27
-1
docs/components/home-surfaces.tsx
+27
-1
@@ -196,7 +196,7 @@ function ForYouVisual() {
196
function PlatformVisual() {
197
return (
198
<div
199
- className="absolute inset-x-5 -bottom-3 rounded-[12px] border border-fd-border bg-fd-card p-3 font-mono text-[11px] leading-[1.8] text-fd-foreground/75 sm:inset-x-6"
199
+ className="absolute inset-x-5 -bottom-3 rounded-[12px] border border-fd-border bg-fd-card p-3 font-mono text-[11.5px] leading-[1.75] text-fd-foreground/75 sm:inset-x-6"
200
style={BOTTOM_FADE_STYLE}
201
>
202
<div className="mb-2 flex items-center gap-1.5">
@@ -210,6 +210,25 @@ function PlatformVisual() {
210
<span className="text-[var(--composio-brand)]">from</span>
211
<span className="text-fd-foreground/55">{" '@composio/core'"}</span>
212
</div>
213
+ <div className="truncate">
214
+ <span className="text-[var(--composio-brand)]">import</span>
215
+ {" { OpenAIAgentsProvider } "}
216
+ <span className="text-[var(--composio-brand)]">from</span>
217
+ <span className="text-fd-foreground/55">
218
+ {" '@composio/openai-agents'"}
219
+ </span>
220
+ </div>
221
+ <div className="truncate">
222
+ <span className="text-[var(--composio-brand)]">const</span>
223
+ {' composio = '}
224
+ <span className="text-[var(--composio-brand)]">new</span>
225
+ {' Composio'}
226
+ <span className="text-fd-foreground/45">
227
+ ({'{ provider: '}
228
+ <span className="text-[var(--composio-brand)]">new</span>
229
+ {' OpenAIAgentsProvider() }'})
230
+ </span>
231
+ </div>
232
<div className="truncate">
233
<span className="text-[var(--composio-brand)]">const</span>
234
{' session = '}
@@ -224,6 +243,13 @@ function PlatformVisual() {
243
{' session.tools'}
244
<span className="text-fd-foreground/45">()</span>
245
</div>
246
+ <div className="truncate">
247
+ <span className="text-[var(--composio-brand)]">const</span>
248
+ {' agent = '}
249
+ <span className="text-[var(--composio-brand)]">new</span>
250
+ {' Agent'}
251
+ <span className="text-fd-foreground/45">({'{ name, instructions, model, tools }'})</span>
252
+ </div>
253
</div>
254
);
255
}