mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 03:24:42 -07:00
feat(core,cli): enforce mandatory MessageBus injection (Phase 3 Hard Migration) (#15776)
This commit is contained in:
@@ -179,7 +179,7 @@ class MemoryToolInvocation extends BaseToolInvocation<
|
||||
|
||||
constructor(
|
||||
params: SaveMemoryParams,
|
||||
messageBus?: MessageBus,
|
||||
messageBus: MessageBus,
|
||||
toolName?: string,
|
||||
displayName?: string,
|
||||
) {
|
||||
@@ -298,16 +298,16 @@ export class MemoryTool
|
||||
{
|
||||
static readonly Name = MEMORY_TOOL_NAME;
|
||||
|
||||
constructor(messageBus?: MessageBus) {
|
||||
constructor(messageBus: MessageBus) {
|
||||
super(
|
||||
MemoryTool.Name,
|
||||
'SaveMemory',
|
||||
memoryToolDescription,
|
||||
Kind.Think,
|
||||
memoryToolSchemaData.parametersJsonSchema as Record<string, unknown>,
|
||||
messageBus,
|
||||
true,
|
||||
false,
|
||||
messageBus,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -323,13 +323,13 @@ export class MemoryTool
|
||||
|
||||
protected createInvocation(
|
||||
params: SaveMemoryParams,
|
||||
messageBus?: MessageBus,
|
||||
messageBus: MessageBus,
|
||||
toolName?: string,
|
||||
displayName?: string,
|
||||
) {
|
||||
return new MemoryToolInvocation(
|
||||
params,
|
||||
messageBus ?? this.messageBus,
|
||||
messageBus,
|
||||
toolName ?? this.name,
|
||||
displayName ?? this.displayName,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user