MCPcopy Index your code
hub / github.com/algorithmicsuperintelligence/optillm / set_processor

Method set_processor

optillm/batching.py:221–228  ·  view source on GitHub ↗

Set the batch processing function Args: processor_func: Function that takes list of request data and returns list of responses

(self, processor_func)

Source from the content-addressed store, hash-verified

219 req.future.set_exception(BatchingError(error_msg))
220
221 def set_processor(self, processor_func):
222 """
223 Set the batch processing function
224
225 Args:
226 processor_func: Function that takes list of request data and returns list of responses
227 """
228 self._processor_func = processor_func
229
230 def add_request(self, request_data: Dict[str, Any]) -> Dict[str, Any]:
231 """

Callers 5

mainFunction · 0.95
setUpMethod · 0.80

Calls

no outgoing calls

Tested by 4

setUpMethod · 0.64