Commit a789d73
docs(agentserver-skills): correct API guidance that would misguide coding agents
Reviewed all four standalone skills against the actual package surface and fixed
claims that produce broken code:
durable-task-skill:
- Remove the broken 'from ...durable import ... Suspended' (Suspended is an
internal _Suspended sentinel, not exported -> ImportError).
- Fix local-provider env vars: the LocalFileTaskProvider roots at
${AGENTSERVER_DURABLE_ROOT:-~/.durable}/tasks/ and the force-local override is
AGENTSERVER_TASKS_BACKEND=local (the doc's ~/.durable-tasks/ +
AGENTSERVER_DURABLE_TASKS_PATH were wrong/legacy).
responses-skill:
- context.durable_metadata / DurableMetadataNamespace does not exist; the real
handler metadata facade is context.conversation_chain_metadata
(ConversationChainMetadataNamespace, has .flush()). Fixed surface table +
decision shortcut.
- Import CreateResponse and ResponseEventStream from the public top-level
azure.ai.agentserver.responses (not the private models._generated /
streaming._event_stream modules).
streaming-skill:
- use_file_backed_replay takes storage_dir=, not root= (2 spots).
invocations-skill verified correct (invoke_handler/get_invocation_handler/
cancel_invocation_handler/ws_handler/request.state.session_id all real) — no change.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2672e44 commit a789d73
3 files changed
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
186 | | - | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | | - | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
0 commit comments