Connect New Agent After Training Has Started

So I am instantiating my agent from another script after the training has already started. However, this brain is not connecting to Python, and does not train. Is there any way for me to connect the agent to the Python from a C# script?. And no, in the situation I am in, it is not possible to load the scene with the agent already created. Below is how I am instantiating the agent, if it helps.

GameObject seekerObject = Instantiate(seekerPrefab, new Vector3(0, 0, 0.5f), Quaternion.identity);
seekerObject.transform.SetParent(transform);
AgentScript agentScript = seekerObject.GetComponent<AgentScript>();
agentScript.Initialize();
seekerObject.GetComponent<Unit>().target = targetObject.transform;
seekerObject.SetActive(true);

You should be able to train with agents spawned at runtime just fine, can you add some more detail about how your instantiating/ the use case?

Not sure about this but have you tried activating the gameobject seekerObject before running Initialize? Sometimes components on disabled gameobjects behave strangely (for example coroutines wont run on a disabled gameobject). Might be worth a try.