|
2 | 2 |
|
3 | 3 |
|
4 | 4 | <!-- |
5 | | - | Generated by Apache Maven Doxia Site Renderer 2.0.0 from target/filtered-site/markdown/advanced.md at 2026-04-19 |
| 5 | + | Generated by Apache Maven Doxia Site Renderer 2.0.0 from target/filtered-site/markdown/advanced.md at 2026-04-20 |
6 | 6 | | Rendered using Apache Maven Fluido Skin 2.1.0 |
7 | 7 | --> |
8 | 8 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> |
|
124 | 124 |
|
125 | 125 | <div id="breadcrumbs"> |
126 | 126 | <ul class="breadcrumb"> |
127 | | - <li id="publishDate">Last Published: 2026-04-19<span class="divider">|</span> |
| 127 | + <li id="publishDate">Last Published: 2026-04-20<span class="divider">|</span> |
128 | 128 | </li> |
129 | 129 | <li id="projectVersion">Version: 0.2.3-java.1-SNAPSHOT<span class="divider">|</span></li> |
130 | 130 | <li><a href="index.html">Home</a><span class="divider">/</span></li> |
@@ -375,7 +375,7 @@ <h2>Switching Models Mid-Session</h2> |
375 | 375 | </code></pre> |
376 | 376 | <p>The <code>reasoningEffort</code> parameter accepts <code>"low"</code>, <code>"medium"</code>, <code>"high"</code>, or <code>"xhigh"</code> for models |
377 | 377 | that support reasoning. Pass <code>null</code> (or use the single-argument overload) to use the default.</p> |
378 | | -<p>The session emits a <a href="apidocs/com/github/copilot/sdk/events/SessionModelChangeEvent.html"><code>SessionModelChangeEvent</code></a> |
| 378 | +<p>The session emits a <a href="apidocs/com/github/copilot/sdk/generated/SessionModelChangeEvent.html"><code>SessionModelChangeEvent</code></a> |
379 | 379 | when the switch completes, which you can observe with <code>session.on(SessionModelChangeEvent.class, event -> ...)</code>.</p> |
380 | 380 | <p>See <a href="apidocs/com/github/copilot/sdk/CopilotSession.html#setModel.28java.lang.String.29">CopilotSession.setModel()</a> Javadoc for details.</p><hr /></section><section><a id="System_Messages"></a> |
381 | 381 | <h2>System Messages</h2> |
@@ -845,7 +845,7 @@ <h2>Early Event Registration</h2> |
845 | 845 | <p>Register an event handler <em>before</em> the <code>session.create</code> RPC is issued, ensuring no early events are missed.</p> |
846 | 846 | <p>When you register handlers with <code>session.on()</code> after <code>createSession()</code> returns, you may miss events emitted during session creation (e.g., <code>SessionStartEvent</code>). Use <code>SessionConfig.setOnEvent()</code> to guarantee delivery of all events from the very start:</p> |
847 | 847 |
|
848 | | -<pre class="prettyprint"><code class="language-java">var events = new CopyOnWriteArrayList<AbstractSessionEvent>(); |
| 848 | +<pre class="prettyprint"><code class="language-java">var events = new CopyOnWriteArrayList<SessionEvent>(); |
849 | 849 |
|
850 | 850 | var session = client.createSession( |
851 | 851 | new SessionConfig().setOnPermissionRequest(PermissionHandler.APPROVE_ALL) |
|
0 commit comments