How to link a custom agent to your app
AbstractAgentFactory
class to specify how agents are created. Here you can import and use your own custom agents.
AgentFactory
. In this example, we are creating a factory for a new type of agent called MyActionAgent: