readSession

suspend fun <T> readSession(block: suspend AIAgentLLMReadSession.() -> T): T(source)

Executes a read session within the AIAgentLLMContext, ensuring concurrent safety with active write session and other read sessions.