Skip to content

Commit 9e6b95d

Browse files
committed
some minor updates
1 parent fc44d2a commit 9e6b95d

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

packages/firebase_ai/firebase_ai/lib/firebase_ai.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ export 'src/imagen/imagen_reference.dart'
100100
export 'src/live_api.dart'
101101
show
102102
AudioTranscriptionConfig,
103+
ContextWindowCompressionConfig,
104+
GoingAwayNotice,
103105
LiveGenerationConfig,
104106
LiveServerMessage,
105107
LiveServerContent,
@@ -108,8 +110,8 @@ export 'src/live_api.dart'
108110
LiveServerResponse,
109111
SessionResumptionConfig,
110112
SessionResumptionUpdate,
113+
SlidingWindow,
111114
SpeechConfig,
112-
GoingAwayNotice,
113115
Transcription;
114116
export 'src/live_session.dart' show LiveSession;
115117
export 'src/schema.dart' show Schema, SchemaType;

packages/firebase_ai/firebase_ai/lib/src/live_session.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ class LiveSession {
156156
);
157157
}
158158

159+
/// Resumes an existing live session with the server.
160+
///
161+
/// This closes the current WebSocket connection and establishes a new one using
162+
/// the same configuration (URI, headers, model, system instruction, tools, etc.)
163+
/// as the original session.
164+
///
165+
/// [sessionResumption] (optional): The configuration for session resumption,
166+
/// such as the handle to the previous session state to restore.
159167
Future<void> resumeSession(
160168
{SessionResumptionConfig? sessionResumption}) async {
161169
await _wsSubscription.cancel();

0 commit comments

Comments
 (0)