Skip to main content

Agent Factories

Agent factories specify which agents are available to your app. In order to connect an agent to your app, you must first define an agent factory. To do so, subclass the AbstractAgentFactory class to specify how agents are created. Here you can import and use your own custom agents.

Example

First define your AgentFactory. In this example, we are creating a factory for a new type of agent called MyActionAgent:
Then, in your app, you can connect the agent to the app: