summaryrefslogtreecommitdiff
path: root/packages/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/core/src')
-rw-r--r--packages/core/src/core/client.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/core/src/core/client.ts b/packages/core/src/core/client.ts
index 747b9165..ed903788 100644
--- a/packages/core/src/core/client.ts
+++ b/packages/core/src/core/client.ts
@@ -134,6 +134,10 @@ export class GeminiClient {
return this.chat;
}
+ isInitialized(): boolean {
+ return this.chat !== undefined && this.contentGenerator !== undefined;
+ }
+
getHistory(): Content[] {
return this.getChat().getHistory();
}