Skip to content

skill.py

Skill (Node)

Skill object to interact with Celonis Studio API.

Source code in celonis_api/studio/skill.py
class Skill(Node):
    """Skill object to interact with Celonis Studio API."""

    @property
    def content(self) -> typing.Dict:
        """Get/Set the content of the Skill."""
        # Skill uses json serialization vs. e.g. knowledge model and other assets that use yaml.
        return json.loads(self.data["serializedContent"])

    @content.setter
    def content(self, value: typing.Dict):
        self.data["serializedContent"] = json.dumps(value, sort_keys=False, separators=(",", ":"))

content: Dict property writable

Get/Set the content of the Skill.