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

Method save

ms_agent/skill/container.py:316–322  ·  view source on GitHub ↗

Save spec to markdown file.

(self, output_path: Union[str, Path])

Source from the content-addressed store, hash-verified

314 return '\n'.join(lines)
315
316 def save(self, output_path: Union[str, Path]):
317 """Save spec to markdown file."""
318 output_path = Path(output_path)
319 output_path.parent.mkdir(parents=True, exist_ok=True)
320 with open(output_path, 'w', encoding='utf-8') as f:
321 f.write(self.to_markdown())
322 logger.info(f'Execution spec saved to: {output_path}')
323
324
325class SkillContainer:

Callers 13

fadeMethod · 0.45
execute_codeMethod · 0.45
generate_imageMethod · 0.45
generate_imageMethod · 0.45
generate_imageMethod · 0.45
save_historyFunction · 0.45
markdown_to_pptxMethod · 0.45
save_spec_logMethod · 0.45

Calls 2

to_markdownMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected