v1

latestOpenAPI 3.1.02026-07-1740131135.9 KB
EMO

Iterate

Starts the EMO method.

Args: request (EMOSolveRequest): The request object containing parameters for the EMO method. user (Annotated[User, Depends]): The current user. session (Annotated[Session, Depends]): The database session.

Raises: HTTPException: If the request is invalid or the EMO method fails.

Returns: IterateResponse: A response object containing a list of IDs to be used for websocket communication. Also contains the StateDB id where the results will be stored.

post/method/emo/iterate

Request body

problem_idinteger required

Database ID of the problem to solve.

session_idinteger nullable
parent_state_idinteger nullable

State ID of the parent state, if any. Should be None if this is the first state in a session.

Response

Successful Response

method_idsstring[] required

IDs of the EMO methods using websockets to get/send updates.

client_idstring required

Client ID to use when connecting to the websockets.

state_idinteger required

The state ID of the newly created state.