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§
- Memory
Request - What the runtime is asking a
MemorySourcefor. - Provider
Request - What the runtime is asking a
ProviderSourcefor. - Runtime
Capabilities - Every capability the runtime obtains from outside itself, for one config generation.
- Tool
Request - What the runtime is asking a
ToolSourcefor.
Traits§
- Channel
Source - Supplies outbound delivery channels.
- Memory
Source - Supplies memory backends.
- Provider
Source - Supplies model providers.
- Tool
Source - Supplies tool registries.