Overview
TheAgent class provides a foundation for implementing various types of agents, such as reinforcement learning agents or autonomous agents.
Class Definition
Parameters
Optional[str]
The name of the agent. If None, a random name is generated.
Properties
name
str
The agent’s name.
Core Methods
act
Any
required
The current observation of the environment.
Any
The action to take.
learn
Any
required
The experience to learn from.
reset
Persistence
save
str
required
The path to save the agent to.
load
str
required
The path to load the agent from.
Example Usage
Built-in Agent Types
Neurenix provides several built-in agent implementations:DQN Agent
Deep Q-Network agent for discrete action spaces
A2C Agent
Advantage Actor-Critic agent
PPO Agent
Proximal Policy Optimization agent
SAC Agent
Soft Actor-Critic agent for continuous control