MCPcopy Create free account
hub / github.com/modelscope/ms-agent / _create_record

Method _create_record

ms_agent/skill/container.py:526–542  ·  view source on GitHub ↗

Create a new execution record.

(self,
                       skill_id: str,
                       executor_type: ExecutorType,
                       input_spec: ExecutionInput,
                       script_path: str = None,
                       function_name: str = None,
                       sandbox_used: bool = None)

Source from the content-addressed store, hash-verified

524 return outputs
525
526 def _create_record(self,
527 skill_id: str,
528 executor_type: ExecutorType,
529 input_spec: ExecutionInput,
530 script_path: str = None,
531 function_name: str = None,
532 sandbox_used: bool = None) -> ExecutionRecord:
533 """Create a new execution record."""
534 return ExecutionRecord(
535 skill_id=skill_id,
536 executor_type=executor_type,
537 script_path=script_path,
538 function_name=function_name,
539 input_spec=input_spec,
540 status=ExecutionStatus.PENDING,
541 sandbox_used=sandbox_used
542 if sandbox_used is not None else self.use_sandbox)
543
544 # -------------------------------------------------------------------------
545 # Local Execution Helpers (for use_sandbox=False mode)

Callers 5

execute_python_scriptMethod · 0.95
execute_python_codeMethod · 0.95
execute_shellMethod · 0.95
execute_javascriptMethod · 0.95

Calls 1

ExecutionRecordClass · 0.85

Tested by

no test coverage detected