(self)
| 8076 | return Skill(description, enabled, name, source, user_invocable, argument_hint, path, plugin_name) |
| 8077 | |
| 8078 | def to_dict(self) -> dict: |
| 8079 | result: dict = {} |
| 8080 | result["description"] = from_str(self.description) |
| 8081 | result["enabled"] = from_bool(self.enabled) |
| 8082 | result["name"] = from_str(self.name) |
| 8083 | result["source"] = to_enum(SkillSource, self.source) |
| 8084 | result["userInvocable"] = from_bool(self.user_invocable) |
| 8085 | if self.argument_hint is not None: |
| 8086 | result["argumentHint"] = from_union([from_str, from_none], self.argument_hint) |
| 8087 | if self.path is not None: |
| 8088 | result["path"] = from_union([from_str, from_none], self.path) |
| 8089 | if self.plugin_name is not None: |
| 8090 | result["pluginName"] = from_union([from_str, from_none], self.plugin_name) |
| 8091 | return result |
| 8092 | |
| 8093 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 8094 | class SkillDiscoveryScope(Enum): |
nothing calls this directly
no test coverage detected