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
-[Getting Session Metadata by ID](#Getting_Session_Metadata_by_ID)
57
60
58
61
---
@@ -1267,6 +1270,59 @@ All `getUi()` methods throw `IllegalStateException` if the host does not support
1267
1270
1268
1271
---
1269
1272
1273
+
## Mode Handlers
1274
+
1275
+
Mode handlers let the host respond to runtime requests for switching between agent modes (plan, interactive, autopilot).
1276
+
1277
+
### Exit Plan Mode Handler
1278
+
1279
+
Register an `ExitPlanModeHandler` to handle requests from the agent to exit plan mode. The handler receives a summary of the plan, available actions, and a recommended action. If no handler is registered, exit-plan-mode requests are auto-approved.
See [ExitPlanModeHandler](apidocs/com/github/copilot/sdk/json/ExitPlanModeHandler.html) Javadoc for more details.
1297
+
1298
+
### Auto Mode Switch Handler
1299
+
1300
+
Register an `AutoModeSwitchHandler` to handle requests to switch to an alternative model when a rate limit is encountered. If no handler is registered, auto-mode-switch requests are declined by default.
0 commit comments