Module Openai_gym.Gym_j
type json= Json_t.jsonType 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.envstype 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 string_of_json : ?len:int -> json -> stringSerialize a value of type
jsoninto 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 -> jsonInput JSON data of type
json.
val write_step_response : Bi_outbuf.t -> step_response -> unitOutput a JSON value of type
step_response.
val string_of_step_response : ?len:int -> step_response -> stringSerialize a value of type
step_responseinto 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_responseInput JSON data of type
step_response.
val step_response_of_string : string -> step_responseDeserialize JSON data of type
step_response.
val write_step_param : Bi_outbuf.t -> step_param -> unitOutput a JSON value of type
step_param.
val string_of_step_param : ?len:int -> step_param -> stringSerialize a value of type
step_paraminto 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_paramInput JSON data of type
step_param.
val step_param_of_string : string -> step_paramDeserialize JSON data of type
step_param.
val write_observation_space_info : Bi_outbuf.t -> observation_space_info -> unitOutput a JSON value of type
observation_space_info.
val string_of_observation_space_info : ?len:int -> observation_space_info -> stringSerialize a value of type
observation_space_infointo 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_infoInput JSON data of type
observation_space_info.
val observation_space_info_of_string : string -> observation_space_infoDeserialize JSON data of type
observation_space_info.
val write_observation_space_contains_response : Bi_outbuf.t -> observation_space_contains_response -> unitOutput a JSON value of type
observation_space_contains_response.
val string_of_observation_space_contains_response : ?len:int -> observation_space_contains_response -> stringSerialize a value of type
observation_space_contains_responseinto 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_responseInput JSON data of type
observation_space_contains_response.
val observation_space_contains_response_of_string : string -> observation_space_contains_responseDeserialize JSON data of type
observation_space_contains_response.
val write_observation : Bi_outbuf.t -> observation -> unitOutput a JSON value of type
observation.
val string_of_observation : ?len:int -> observation -> stringSerialize a value of type
observationinto 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 -> observationInput JSON data of type
observation.
val observation_of_string : string -> observationDeserialize JSON data of type
observation.
val write_monitor_start_param : Bi_outbuf.t -> monitor_start_param -> unitOutput a JSON value of type
monitor_start_param.
val string_of_monitor_start_param : ?len:int -> monitor_start_param -> stringSerialize a value of type
monitor_start_paraminto 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_paramInput JSON data of type
monitor_start_param.
val monitor_start_param_of_string : string -> monitor_start_paramDeserialize JSON data of type
monitor_start_param.
val write_instance_id : Bi_outbuf.t -> instance_id -> unitOutput a JSON value of type
instance_id.
val string_of_instance_id : ?len:int -> instance_id -> stringSerialize a value of type
instance_idinto 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_idInput JSON data of type
instance_id.
val instance_id_of_string : string -> instance_idDeserialize JSON data of type
instance_id.
val string_of_envs : ?len:int -> envs -> stringSerialize a value of type
envsinto 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 -> envsInput JSON data of type
envs.
val string_of_env_id : ?len:int -> env_id -> stringSerialize a value of type
env_idinto 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_idInput JSON data of type
env_id.
val string_of_all_envs : ?len:int -> all_envs -> stringSerialize a value of type
all_envsinto 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_envsInput JSON data of type
all_envs.
val write_action_space_info : Bi_outbuf.t -> action_space_info -> unitOutput a JSON value of type
action_space_info.
val string_of_action_space_info : ?len:int -> action_space_info -> stringSerialize a value of type
action_space_infointo 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_infoInput JSON data of type
action_space_info.
val action_space_info_of_string : string -> action_space_infoDeserialize JSON data of type
action_space_info.
val write_action_space_contains_response : Bi_outbuf.t -> action_space_contains_response -> unitOutput a JSON value of type
action_space_contains_response.
val string_of_action_space_contains_response : ?len:int -> action_space_contains_response -> stringSerialize a value of type
action_space_contains_responseinto 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_responseInput JSON data of type
action_space_contains_response.
val action_space_contains_response_of_string : string -> action_space_contains_responseDeserialize JSON data of type
action_space_contains_response.
val string_of_action : ?len:int -> action -> stringSerialize a value of type
actioninto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.