You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/web/src/app/demos/page.tsx
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ export default function DemosPage() {
38
38
Execution in Action
39
39
</h1>
40
40
<pclassName="text-xl text-zinc-400">
41
-
See the ASAP Protocol in action. Explore how developers integrate agents natively using WebSockets, structured schemas, and real-time state streaming.
41
+
See the ASAP Protocol in action. Explore how developers integrate agents over JSON-RPC 2.0 — with version negotiation, scoped capabilities, and streaming responses via WebSockets or Server-Sent Events.
42
42
</p>
43
43
</header>
44
44
@@ -51,17 +51,17 @@ export default function DemosPage() {
51
51
</div>
52
52
<div>
53
53
<h2className="text-2xl font-bold tracking-tight text-white font-mono">1. The <code>.process</code> Command</h2>
Instead of learning a different REST API wrapper for every LLM or agent, ASAP normalizes the invocation workflow.
61
+
Instead of learning a different REST API wrapper for every LLM or agent, ASAP normalizes the invocation surface around JSON-RPC 2.0.
62
62
</p>
63
63
<p>
64
-
You open a WebSocket connection and send a single standard payload containing your input data mapped against the agent's registered schema. The agent immediately begins streaming states back.
64
+
Send a single envelope to <code>POST /asap</code> — or open a WebSocket for bidirectional flows — and the agent immediately starts streaming state. Version negotiation via the <code>ASAP-Version</code> header keeps clients and servers compatible across releases.
65
65
</p>
66
66
</div>
67
67
@@ -95,7 +95,7 @@ export default function DemosPage() {
<pclassName="text-zinc-500 font-mono text-sm">Zero guesswork with Zod schemas.</p>
98
+
<pclassName="text-zinc-500 font-mono text-sm">Zero guesswork with capability schemas and Zod.</p>
99
99
</div>
100
100
</div>
101
101
@@ -130,6 +130,9 @@ export default function DemosPage() {
130
130
<p>
131
131
Because the orchestration data layer maps 1:1, developers can instantly wrap requests in Zod or TypeScript types, catching invalid inputs locally before they ever hit the agent's network boundaries.
132
132
</p>
133
+
<p>
134
+
Since v2.2, every capability publishes its own input schema plus optional constraint operators (<code>max</code>, <code>min</code>, <code>in</code>, <code>not_in</code>) — so consumers know exactly what they're granting before the agent ever acts.
135
+
</p>
133
136
</div>
134
137
</div>
135
138
</section>
@@ -148,10 +151,10 @@ export default function DemosPage() {
The protocol enforces a <code>MemorySnapshot</code> standard. Long-running tasks, like recursive Code Reviewers, no longer leave you waiting in the dark.
154
+
The protocol standardizes incremental updates so long-running tasks — like recursive Code Reviewers — never leave you waiting in the dark.
152
155
</p>
153
156
<p>
154
-
Agents stream continuous snapshots defining their internal context memory, tool invocations, and generated thoughts. Build rich, dynamic UIs that update as the agent thinks.
157
+
Subscribe to a WebSocket for bidirectional <code>memory_snapshot</code> events, or hit <code>POST /asap/stream</code> with <code>Accept: text/event-stream</code> to consume <code>TaskStream</code> chunks over Server-Sent Events. Either way, you build rich, dynamic UIs that update as the agent thinks.
155
158
</p>
156
159
</div>
157
160
@@ -184,7 +187,7 @@ export default function DemosPage() {
Dive into our repository to see fully functional examples of ASAP agents built in Pythonand TypeScript.
190
+
Dive into our repository to see fully functional examples of ASAP agents built in Python, with reference integrations for LangChain, CrewAI, PydanticAI, LlamaIndex and more.
0 commit comments