fork

open suspend override fun fork(): AIAgentGraphContextBase(source)

Creates a forked instance of the underlying agent context, resulting in a new independent copy of the AIAgentContextBase. This can be used to create isolated contexts for parallel or independent operations.

Return

A new instance of AIAgentContextBase that is a fork of the current context.