pub trait BuildAgent<OS: Space, AS: Space, FS: Space> {
    type Agent: Agent<OS::Element, AS::Element> + BatchUpdate<OS::Element, AS::Element>;

    fn build_agent(
        &self,
        env: &dyn EnvStructure<ObservationSpace = OS, ActionSpace = AS, FeedbackSpace = FS>,
        rng: &mut Prng
    ) -> Result<Self::Agent, BuildAgentError>; }
Expand description

Build an agent instance for a given environment structure.

Required Associated Types

Type of agent to build

Required Methods

Build an agent for the given environment structure (EnvStructure).

Args
  • env - The structure of the environment in which the agent is to operate.
  • rng - Used for seeding the agent’s pseudo-random internal parameters, if any.

Implementors