summaryrefslogtreecommitdiff
path: root/packages/core/src
diff options
context:
space:
mode:
authorDaniel Lee <[email protected]>2025-07-11 16:52:56 -0700
committerGitHub <[email protected]>2025-07-11 23:52:56 +0000
commit5b6608ad844f89954b9107ad81b3791fae02607a (patch)
treebb37c297784bcfbdc1ecaeb3845716f1cd1db960 /packages/core/src
parent5b5f496436a060124e57009d1f7f37bd4d27f0f3 (diff)
feat(cli): add support for --prompt-interactive/-i flag (#1743)
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();
}