Overview
Start a blocking Flask server that exposes the REST API. Usesarc_agi.server.create_app() under the hood. This conforms to the Rest API to allow local execution for interactions with languages other than Python or with this Toolkit running in ONLINE mode.
Parameters:
host(str, optional): Bind address. Default"0.0.0.0"to accept connections from any interface.port(int, optional): Port to listen on. Default8001.competition_mode(bool, optional): IfTrue, enable competition mode. DefaultFalse.save_all_recordings(bool, optional): IfTrue, save recordings for all runs. DefaultFalse.add_cookie(Callable[[Response, str], Response], optional): Callback to inject a cookie into API responses. Receives(response, api_key); must return the modified response. Use for session stickiness (e.g. ALB app cookies).scorecard_timeout(int, optional): Idle timeout in seconds before scorecards are auto-closed. If set, starts a background cleanup loop.on_scorecard_close(Callable[[EnvironmentScorecard], None], optional): Callback invoked when a scorecard is closed (manually or by timeout).extra_api_routes(Callable[[Arcade, Flask], None], optional): Callback to register custom routes. Receives(arcade, app).renderer(Callable[[int, FrameDataRaw], None], optional): Callback invoked for each frame during gameplay. Receives(step_index, frame_data). Use for logging, visualization, or custom display.**kwargs: Passed through toFlask.run()(e.g.debug=True,threaded=True).
add_cookie for session stickiness):
on_scorecard_close):
extra_api_routes):
renderer for logging):

