Skip to main content

shared_session_ids

Function shared_session_ids 

Source
pub fn shared_session_ids() -> Arc<dyn SessionIdGenerator> ⓘ
Expand description

Process-global numbering for engines that bring no generator of their own.

One process routinely runs several engines — a host and its sub-agents — and each engine that minted its own counter started over at 1, so all of them held a “session 1” and tool calls / metrics could not tell the engines apart. Engines built without a generator draw from this one counter, so ids are unique within the process.