fork

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

Creates a copy of the current AIAgentContext with deep copies of all mutable properties.

Return

A new instance of AIAgentContext with copies of all mutable properties.