Skip to content

InjectionContext

Defined in: src/injection/types.ts:22

The context an injection consumer receives on each model call, passed to renderContent and to a predicate InjectionConfig.trigger.

messages: MessageData[];

Defined in: src/injection/types.ts:24

The current conversation, as data.


appState: StateStore;

Defined in: src/injection/types.ts:26

Durable app state shared across calls, hooks, and tools — read what a tool stashed last turn.


agent: LocalAgent;

Defined in: src/injection/types.ts:28

The agent the injection is attached to (escape hatch for advanced consumers).