replace

abstract suspend fun replace(context: AIAgentContextBase)(source)

Replaces the current context with the provided context. This method is used to update the current context with values from another context, particularly useful in scenarios like parallel node execution where contexts need to be merged.

Parameters

context

The context to replace the current context with.