agents ====== .. py:module:: agents Attributes ---------- .. autoapisummary:: agents.AGENT_REGISTRY Classes ------- .. autoapisummary:: agents.Agent Module Contents --------------- .. py:data:: AGENT_REGISTRY :type: dict[str, Any] .. py:class:: Agent(config, env, data_config = None, load = False) Base class for all agents in the Rambling Realms trading system. This class provides a common interface and basic functionality for all agents. .. py:attribute:: config :type: trading.cli.alg.config.AgentConfig .. py:attribute:: meta_data :type: dict .. py:attribute:: env :type: gymnasium.Env .. py:method:: make_agent(config, env) :classmethod: Creates an agent based on the provided configuration and environment. .. py:method:: load_agent(config, env) :classmethod: Loads an agent and its meta_data from a saved zip file without extracting to disk. :returns: model, meta_data .. py:method:: learn(timesteps = None) .. py:method:: predict(obs) .. py:method:: save(path = None)