MCPcopy Create free account
hub / github.com/StackStorm/st2 / run

Method run

contrib/chatops/actions/match.py:30–34  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

28 self.client = Client(api_url=api_url, token=token)
29
30 def run(self, text):
31 alias_match = ActionAliasMatch()
32 alias_match.command = text
33 matches = self.client.managers["ActionAlias"].match(alias_match)
34 return {"alias": _format_match(matches[0]), "representation": matches[1]}
35
36
37def _format_match(match):

Calls 3

ActionAliasMatchClass · 0.90
_format_matchFunction · 0.85
matchMethod · 0.45