copy
suspend fun copy(tools: List<ToolDescriptor> = this.tools, toolRegistry: ToolRegistry = this.toolRegistry, prompt: Prompt = this.prompt, model: LLModel = this.model, promptExecutor: PromptExecutor = this.promptExecutor, environment: AIAgentEnvironment = this.environment, config: AIAgentConfigBase = this.config, clock: Clock = this.clock): AIAgentLLMContext(source)
Creates a deep copy of this LLM context.
Return
A new instance of AIAgentLLMContext with deep copies of mutable properties.
fun copy(tools: List<ToolDescriptor> = this.tools, prompt: Prompt = this.prompt, model: LLModel = this.model, promptExecutor: PromptExecutor = this.promptExecutor, environment: AIAgentEnvironment = this.environment, config: AIAgentConfigBase = this.config, clock: Clock = this.clock): AIAgentLLMContext(source)
Returns the current prompt used in the LLM context.
Return
The current Prompt instance.