Module Openai_gym.Gym_j

type json = Json_t.json

Type of arbitrary JSON values.

type step_response = Gym_t.step_response = {
step_observation : json;
step_reward : float;
step_done : bool;
step_info : json;
}
type step_param = Gym_t.step_param = {
step_render : bool;
step_action : json;
}
type observation_space_info = Gym_t.observation_space_info = {
observation_space_info : json;
}
type observation_space_contains_response = Gym_t.observation_space_contains_response = {
observation_space_contains_member : bool;
}
type observation = Gym_t.observation = {
observation : json;
}
type monitor_start_param = Gym_t.monitor_start_param = {
monitor_directory : string;
monitor_force : bool;
monitor_resume : bool;
monitor_video_callable : bool;
}
type instance_id = Gym_t.instance_id = {
instance_id : string;
}
type envs = Gym_t.envs
type env_id = Gym_t.env_id = {
env_id : string;
}
type all_envs = Gym_t.all_envs = {
all_envs : envs;
}
type action_space_info = Gym_t.action_space_info = {
action_space_info : json;
}
type action_space_contains_response = Gym_t.action_space_contains_response = {
action_space_contains_member : bool;
}
type action = Gym_t.action = {
action : int;
}
val write_json : Bi_outbuf.t -> json -> unit

Output a JSON value of type json.

val string_of_json : ?⁠len:int -> json -> string

Serialize a value of type json into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_json : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> json

Input JSON data of type json.

val json_of_string : string -> json

Deserialize JSON data of type json.

val write_step_response : Bi_outbuf.t -> step_response -> unit

Output a JSON value of type step_response.

val string_of_step_response : ?⁠len:int -> step_response -> string

Serialize a value of type step_response into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_step_response : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> step_response

Input JSON data of type step_response.

val step_response_of_string : string -> step_response

Deserialize JSON data of type step_response.

val write_step_param : Bi_outbuf.t -> step_param -> unit

Output a JSON value of type step_param.

val string_of_step_param : ?⁠len:int -> step_param -> string

Serialize a value of type step_param into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_step_param : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> step_param

Input JSON data of type step_param.

val step_param_of_string : string -> step_param

Deserialize JSON data of type step_param.

val write_observation_space_info : Bi_outbuf.t -> observation_space_info -> unit

Output a JSON value of type observation_space_info.

val string_of_observation_space_info : ?⁠len:int -> observation_space_info -> string

Serialize a value of type observation_space_info into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_observation_space_info : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> observation_space_info

Input JSON data of type observation_space_info.

val observation_space_info_of_string : string -> observation_space_info

Deserialize JSON data of type observation_space_info.

val write_observation_space_contains_response : Bi_outbuf.t -> observation_space_contains_response -> unit

Output a JSON value of type observation_space_contains_response.

val string_of_observation_space_contains_response : ?⁠len:int -> observation_space_contains_response -> string

Serialize a value of type observation_space_contains_response into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_observation_space_contains_response : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> observation_space_contains_response

Input JSON data of type observation_space_contains_response.

val observation_space_contains_response_of_string : string -> observation_space_contains_response

Deserialize JSON data of type observation_space_contains_response.

val write_observation : Bi_outbuf.t -> observation -> unit

Output a JSON value of type observation.

val string_of_observation : ?⁠len:int -> observation -> string

Serialize a value of type observation into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_observation : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> observation

Input JSON data of type observation.

val observation_of_string : string -> observation

Deserialize JSON data of type observation.

val write_monitor_start_param : Bi_outbuf.t -> monitor_start_param -> unit

Output a JSON value of type monitor_start_param.

val string_of_monitor_start_param : ?⁠len:int -> monitor_start_param -> string

Serialize a value of type monitor_start_param into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_monitor_start_param : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> monitor_start_param

Input JSON data of type monitor_start_param.

val monitor_start_param_of_string : string -> monitor_start_param

Deserialize JSON data of type monitor_start_param.

val write_instance_id : Bi_outbuf.t -> instance_id -> unit

Output a JSON value of type instance_id.

val string_of_instance_id : ?⁠len:int -> instance_id -> string

Serialize a value of type instance_id into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_instance_id : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> instance_id

Input JSON data of type instance_id.

val instance_id_of_string : string -> instance_id

Deserialize JSON data of type instance_id.

val write_envs : Bi_outbuf.t -> envs -> unit

Output a JSON value of type envs.

val string_of_envs : ?⁠len:int -> envs -> string

Serialize a value of type envs into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_envs : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> envs

Input JSON data of type envs.

val envs_of_string : string -> envs

Deserialize JSON data of type envs.

val write_env_id : Bi_outbuf.t -> env_id -> unit

Output a JSON value of type env_id.

val string_of_env_id : ?⁠len:int -> env_id -> string

Serialize a value of type env_id into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_env_id : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> env_id

Input JSON data of type env_id.

val env_id_of_string : string -> env_id

Deserialize JSON data of type env_id.

val write_all_envs : Bi_outbuf.t -> all_envs -> unit

Output a JSON value of type all_envs.

val string_of_all_envs : ?⁠len:int -> all_envs -> string

Serialize a value of type all_envs into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_all_envs : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> all_envs

Input JSON data of type all_envs.

val all_envs_of_string : string -> all_envs

Deserialize JSON data of type all_envs.

val write_action_space_info : Bi_outbuf.t -> action_space_info -> unit

Output a JSON value of type action_space_info.

val string_of_action_space_info : ?⁠len:int -> action_space_info -> string

Serialize a value of type action_space_info into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_action_space_info : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> action_space_info

Input JSON data of type action_space_info.

val action_space_info_of_string : string -> action_space_info

Deserialize JSON data of type action_space_info.

val write_action_space_contains_response : Bi_outbuf.t -> action_space_contains_response -> unit

Output a JSON value of type action_space_contains_response.

val string_of_action_space_contains_response : ?⁠len:int -> action_space_contains_response -> string

Serialize a value of type action_space_contains_response into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_action_space_contains_response : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> action_space_contains_response

Input JSON data of type action_space_contains_response.

val action_space_contains_response_of_string : string -> action_space_contains_response

Deserialize JSON data of type action_space_contains_response.

val write_action : Bi_outbuf.t -> action -> unit

Output a JSON value of type action.

val string_of_action : ?⁠len:int -> action -> string

Serialize a value of type action into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_action : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> action

Input JSON data of type action.

val action_of_string : string -> action

Deserialize JSON data of type action.