Evaluation client
Module: se3labs.sdk.client
serve_policy
serve_policy(
station_id: str,
address: str,
request: JobRequest,
*,
secure: bool = False,
connect_timeout_s: float = 30.0,
) -> SessionReport
Connect to address (the relay, or a station directly), run the
whole session on station_id, and return the report.
get_status
get_status(
station_id: str,
address: str,
*,
secure: bool = False,
timeout_s: float = 10.0,
) -> status_pb.Status
The latest status station_id reported, as cached by the relay.
Raises grpc.RpcError with NOT_FOUND when it has reported none.
SessionReport
SessionReport(
station: Station_Spec | None = None,
episodes: int = 0,
steps: int = 0,
close_reason: str = '',
errors: list[str] = <factory>,
)
SessionReport.station
station: Station_Spec | None = None
SessionReport.episodes
episodes: int = 0
SessionReport.steps
steps: int = 0
SessionReport.close_reason
close_reason: str = ''
SessionReport.errors
errors: list[str] = field(default_factory=list)
Exceptions raised by the policy, one line each. A failing infer
answers "keep executing"; a failing initialize ends the session.
SessionRejected
SessionRejected(reject: pb.Reject)
SessionRejected.reject
reject