Commit 4652def
committed
fix(shell-docs): replace ... placeholder + add missing handler in a2a route.ts snippet
Section 3 "Configure the A2A middleware" had a literal ... ellipsis where
the imports should go, and the code block ended at runtime definition
with no POST handler — pasted code would not compile. Add the imports
the block actually uses (HttpAgent, A2AMiddlewareAgent, CopilotRuntime,
ExperimentalEmptyAdapter, copilotRuntimeNextJSAppRouterEndpoint,
NextRequest) and the canonical Next.js App Router POST handler that
hands requests to the runtime. Pattern matches the ms-agent-framework
quickstart route.ts.1 parent 8789210 commit 4652def
1 file changed
Lines changed: 18 additions & 2 deletions
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
| |||
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
| 149 | + | |
| 150 | + | |
143 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
144 | 160 | | |
145 | 161 | | |
146 | 162 | | |
| |||
0 commit comments