setExecutionPoint

fun setExecutionPoint(agentContext: AIAgentContextBase, nodeId: String, messageHistory: List<Message>, input: JsonElement)(source)

Sets the execution point of an agent to a specific state.

This method directly modifies the agent's context to force execution from a specific point, with the specified message history and input data.

Parameters

agentContext

The context of the agent to modify

nodeId

The ID of the node to set as the current execution point

messageHistory

The message history to set for the agent

input

The input data to set for the agent