rlmesh.types
Public structural protocols and shared value aliases.
import rlmesh.typesClasses
- EnvLikeStructural protocol for a single environment.
- HasAddressAnything exposing a dialable endpoint
address(e.g. a server handle). - HasEnvContractAn env client exposing a published
env_contract(e.g. a served-env handle). - PredictContextWhat a predict corner is told about the episode it is predicting for.
- SpaceLikeStructural protocol for RLMesh-compatible spaces.
- SupportsMakeAn env factory: anything with a
makecallable (e.g. - SupportsResetStepA live env object: anything with
resetandstepcallables. - VectorEnvLikeStructural protocol for vectorized environments.
Type aliases
- BatchPredictContextOne
PredictContextper row of a batched corner's batch, in row order. - EnvTargetWhat a served-model
session()(RemoteModel/SandboxModel) accepts as an env: everything inLocalEnvTarget, plus an env client exposing a publishedenv_contract(the contract is sent to the served model at bind). - InfoDictUser-owned diagnostic grab-bag returned by env
reset/step(the gymnasiuminfonorm). - LocalEnvTargetWhat the local drive paths (
run()/session()/Model.run) accept as an env: a live env object, anEnvFactory, an object exposing anaddress, or an address string to dial. - MetadataSDK-validated metadata mapping (e.g. adapter tags, describe envelopes).
- PrimitiveValuePrimitive value type supported by RLMesh value encoding.
- SpecArgA model's adapter spec argument: a
ModelSpec,rlmesh.NO_ADAPTERto opt out on a tagged env, orNone. - ValueRecursive value type supported by RLMesh value encoding.
- ViewArgThe
view=argument: aView, a shorthand string such as"terminal"or"http:9000",Truefor the default viewer, orNone.