mirror of
https://github.com/github/awesome-copilot.git
synced 2026-04-11 02:35:55 +00:00
Update cookbook/copilot-sdk/java/recipe/PersistingSessions.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -25,10 +25,10 @@ public class PersistingSessions {
|
|||||||
.setPrompt("Let's discuss TypeScript generics")).get();
|
.setPrompt("Let's discuss TypeScript generics")).get();
|
||||||
|
|
||||||
System.out.println("\nSession ID: " + session.getSessionId());
|
System.out.println("\nSession ID: " + session.getSessionId());
|
||||||
System.out.println("Session closed — data persisted to disk.");
|
|
||||||
|
|
||||||
// Close session but keep data on disk for later resumption
|
// Close session but keep data on disk for later resumption
|
||||||
session.close();
|
session.close();
|
||||||
|
System.out.println("Session closed — data persisted to disk.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user