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);