MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / inject

Function inject

packages/agent-core/src/agent/injection/injector.ts:25–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 async inject(): Promise<void> {
26 const injection = await this.getInjection();
27 if (injection) {
28 this.injectedAt = this.agent.context.history.length;
29 this.agent.context.appendSystemReminder(injection, {
30 kind: 'injection',
31 variant: this.injectionVariant,
32 });
33 }
34 }
35
36 protected abstract readonly injectionVariant: string;
37

Callers

nothing calls this directly

Calls 2

appendSystemReminderMethod · 0.80
getInjectionMethod · 0.45

Tested by

no test coverage detected