Skip to main content

Module inject

Module inject 

Source
Expand description

Dependency injection markers โ€” types that inject runtime context into tools.

These are zero-cost marker types. When the #[tool] macro (Plan 010) processes a tool function, it recognizes these types and excludes them from the JSON schema sent to the LLM. Instead, they are injected by the runtime before tool execution.

In Plan 006, we define the types. The macro integration comes in Plan 010.

Structsยง

InjectedState
Marker: this tool parameter receives the current graph state.
InjectedStore
Marker: this tool parameter receives the long-term memory store.