writeSession

suspend fun <T> writeSession(block: suspend AIAgentLLMWriteSession.() -> T): T(source)

Executes a write session on the AIAgentLLMContext, ensuring that all active write and read sessions are completed before initiating the write session.