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.

docs: expand the Platform code mock with the real quickstart lines

Malay Vasad47ed21a4325
diff --git a/docs/components/home-surfaces.tsx b/docs/components/home-surfaces.tsx
index 4cb92acd6..f5148c1fc 100644
--- a/docs/components/home-surfaces.tsx
+++ b/docs/components/home-surfaces.tsx
@@ -196,7 +196,7 @@ function ForYouVisual() {
function PlatformVisual() {
return (
<div
- 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"
+ 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"
style={BOTTOM_FADE_STYLE}
>
<div className="mb-2 flex items-center gap-1.5">
@@ -210,6 +210,25 @@ function PlatformVisual() {
<span className="text-[var(--composio-brand)]">from</span>
<span className="text-fd-foreground/55">{" '@composio/core'"}</span>
</div>
+ <div className="truncate">
+ <span className="text-[var(--composio-brand)]">import</span>
+ {" { OpenAIAgentsProvider } "}
+ <span className="text-[var(--composio-brand)]">from</span>
+ <span className="text-fd-foreground/55">
+ {" '@composio/openai-agents'"}
+ </span>
+ </div>
+ <div className="truncate">
+ <span className="text-[var(--composio-brand)]">const</span>
+ {' composio = '}
+ <span className="text-[var(--composio-brand)]">new</span>
+ {' Composio'}
+ <span className="text-fd-foreground/45">
+ ({'{ provider: '}
+ <span className="text-[var(--composio-brand)]">new</span>
+ {' OpenAIAgentsProvider() }'})
+ </span>
+ </div>
<div className="truncate">
<span className="text-[var(--composio-brand)]">const</span>
{' session = '}
@@ -224,6 +243,13 @@ function PlatformVisual() {
{' session.tools'}
<span className="text-fd-foreground/45">()</span>
</div>
+ <div className="truncate">
+ <span className="text-[var(--composio-brand)]">const</span>
+ {' agent = '}
+ <span className="text-[var(--composio-brand)]">new</span>
+ {' Agent'}
+ <span className="text-fd-foreground/45">({'{ name, instructions, model, tools }'})</span>
+ </div>
</div>
);
}