copyWithPrompt

fun <Input, Output> GraphAIAgent<Input, Output>.copyWithPrompt(newPrompt: Prompt): GraphAIAgent<Input, Output>

Returns a copy of this agent whose AIAgentConfig.prompt is replaced with newPrompt, leaving all other configuration (model, tools, installed features) intact.