activate_agent


Description:

public void activate_agent (string fid, string agent_name) throws Error

Activates an agent for a session identified by fid.

This is the entry point for UI to change agents. UI calls this method, which routes to session.activate_agent() to handle the agent change, including copying chat/messages from old AgentHandler to new AgentHandler.

Parameters:

fid

The session identifier (file ID)

agent_name

The name of the agent to activate

Exceptions:

Error

if session not found or agent activation fails