sendContextUpdate

suspend override fun sendContextUpdate(systemInstruction: Content? = null, tools: List<Tool>? = null)

Replaces the session's system instruction or tools for the rest of this connection: a null systemInstruction keeps the current one while one with no parts removes it, and null tools keep the current tools while an empty list removes them. Implementations reject an update that sets neither with IllegalArgumentException; the default throws UnsupportedOperationException. An update can invalidate the model's prefix cache, and a model that does not accept one can end the session, which receive reports.