MCPcopy
hub / github.com/ModelEngine-Group/nexent / _init_forward_context

Function _init_forward_context

backend/data_process/tasks.py:398–416  ·  view source on GitHub ↗
(
    *,
    task_id: str,
    request_id: str,
    start_time: float,
    source: str,
    index_name: str,
    source_type: str,
    original_filename: Optional[str],
)

Source from the content-addressed store, hash-verified

396
397
398def _init_forward_context(
399 *,
400 task_id: str,
401 request_id: str,
402 start_time: float,
403 source: str,
404 index_name: str,
405 source_type: str,
406 original_filename: Optional[str],
407) -> _ForwardContext:
408 return _ForwardContext(
409 task_id=task_id,
410 request_id=request_id,
411 start_time=start_time,
412 source=source,
413 index_name=index_name,
414 source_type=source_type,
415 original_filename=original_filename,
416 )
417
418
419def _is_forward_task_cancelled(ctx: _ForwardContext) -> bool:

Callers 1

forwardFunction · 0.85

Calls 1

_ForwardContextClass · 0.85

Tested by

no test coverage detected