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

Method to_dict

ms_agent/skill/schema.py:51–63  ·  view source on GitHub ↗

Convert SkillFile to dictionary representation. Returns: Dictionary containing file information

(self)

Source from the content-addressed store, hash-verified

49 raise ValueError('File type cannot be empty')
50
51 def to_dict(self):
52 """
53 Convert SkillFile to dictionary representation.
54
55 Returns:
56 Dictionary containing file information
57 """
58 return {
59 'name': self.name,
60 'type': self.type,
61 'path': str(self.path),
62 'required': self.required
63 }
64
65
66@dataclass

Callers 3

load_scriptsMethod · 0.45
load_referencesMethod · 0.45
load_resourcesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected