mstar.api_server.request_types#
Classes
|
Envelope for messages received by the API server. |
|
Profiling reported by the API-server data worker at preprocess finish: the timestamp at which the request was handed to the conductor and the per-modality sizes of the raw inputs. |
|
|
|
Signals that a request has finished processing. |
|
One chunk of generated output for a request. |
|
- class mstar.api_server.request_types.APIServerMessage(message_type, body=None)[source]#
Bases:
objectEnvelope for messages received by the API server.
- Parameters:
message_type (str)
body (ResultTensors | RequestComplete | None)
- body: ResultTensors | RequestComplete | None = None#
- class mstar.api_server.request_types.DataWorkerProfile(request_id, preprocess_finish_time=None, inputs=<factory>)[source]#
Bases:
objectProfiling reported by the API-server data worker at preprocess finish: the timestamp at which the request was handed to the conductor and the per-modality sizes of the raw inputs. (The data worker’s tx/rx are read directly from its tensor manager at request completion, not via this.)
- class mstar.api_server.request_types.PreprocessInput(request_id: str, text: str | None, file_paths: dict[str, list[str]] | None, input_modalities: list[str], output_modalities: list[str], model_kwargs: dict)[source]#
Bases:
object- Parameters:
- class mstar.api_server.request_types.RequestComplete(request_id, final_outputs, conductor_ingest_time, conductor_finish_time, graph_timings=<factory>, rx_info=<factory>, tx_info=<factory>)[source]#
Bases:
objectSignals that a request has finished processing.
- Parameters:
- final_outputs: dict[str, NestedLoopIndices]#
- class mstar.api_server.request_types.ResultChunk(request_id, modality, data, metadata=<factory>)[source]#
Bases:
objectOne chunk of generated output for a request.
- class mstar.api_server.request_types.ResultTensors(request_id: str, modality: str, graph_edge: mstar.graph.base.GraphEdge, loop_indices: mstar.graph.loop_indices.NestedLoopIndices, metadata: dict = <factory>)[source]#
Bases:
object- Parameters:
request_id (str)
modality (str)
graph_edge (GraphEdge)
loop_indices (NestedLoopIndices)
metadata (dict)
- loop_indices: NestedLoopIndices#