Skip to main content

Module composition

Module composition 

Expand description

Runtime composition contract: the capabilities an embedder supplies.

Skeleton only. Nothing in the runtime consumes these types yet, and no construction has moved. docs/book/src/architecture/runtime-composition.md sets out the ownership and lifetime rules and the order in which entry points move onto this contract.

The runtime asks for capabilities through sources rather than receiving finished instances, because it resolves them per agent, per configured provider reference, and per config generation. A source decides how to build or cache what it returns; the runtime decides when to ask, which agent it is asking for, and which resolved security policy applies.

Structs§

MemoryRequest
What the runtime is asking a MemorySource for.
ProviderRequest
What the runtime is asking a ProviderSource for.
RuntimeCapabilities
Every capability the runtime obtains from outside itself, for one config generation.
ToolRequest
What the runtime is asking a ToolSource for.

Traits§

ChannelSource
Supplies outbound delivery channels.
MemorySource
Supplies memory backends.
ProviderSource
Supplies model providers.
ToolSource
Supplies tool registries.