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
Expose Genie spaces, Unity Catalog functions/connections, Knowledge Assistants, or other AppKit apps to the model by declaring them as agent tools — same place every other tool is declared. Execution stays server-side; you write no tool code:
257
257
258
258
```ts
259
-
import { createAgent } from"@databricks/appkit";
260
259
import {
260
+
createAgent,
261
261
DatabricksAdapter,
262
262
supervisorTools,
263
263
} from"@databricks/appkit/beta";
@@ -482,10 +482,10 @@ Flow:
482
482
483
483
1. Before running the tool, the agents plugin emits an `appkit.approval_pending` SSE event carrying the pending call's `approval_id`, `stream_id`, `tool_name`, `args`, and `annotations`.
484
484
2. The chat client renders an approval prompt (see the reference app's approval card).
485
-
3. The same user who initiated the stream posts the decision to `POST /api/agent/approve`:
485
+
3. The same user who initiated the stream posts the decision to `POST /api/agents/approve`:
486
486
487
487
```http
488
-
POST /api/agent/approve
488
+
POST /api/agents/approve
489
489
Content-Type: application/json
490
490
X-Forwarded-User: <end-user id>
491
491
X-Forwarded-Access-Token: <OBO token>
@@ -494,7 +494,7 @@ Flow:
494
494
```
495
495
4. If approved, the tool executes normally and the stream continues. If denied, the adapter receives the string `"Tool execution denied by user approval gate (tool: <name>)."` as the tool output and the LLM can apologise / replan. If no decision arrives within `approval.timeoutMs` (default 60 s), the gate auto-denies.
496
496
497
-
The route enforces that the decider is the stream owner: an approve from a different `x-forwarded-user` returns `403`. Cancelling the stream via `POST /api/agent/cancel` denies every pending approval on that stream.
497
+
The route enforces that the decider is the stream owner: an approve from a different `x-forwarded-user` returns `403`. Cancelling the stream via `POST /api/agents/cancel` denies every pending approval on that stream.
0 commit comments