MCPcopy
hub / github.com/apache/caldera / store

Method store

app/objects/c_planner.py:54–65  ·  view source on GitHub ↗
(self, ram)

Source from the content-addressed store, hash-verified

52 self.plugin = plugin
53
54 def store(self, ram):
55 existing = self.retrieve(ram['planners'], self.unique)
56 if not existing:
57 ram['planners'].append(self)
58 return self.retrieve(ram['planners'], self.unique)
59 else:
60 existing.update('stopping_conditions', self.stopping_conditions)
61 existing.update('params', self.params)
62 existing.update('plugin', self.plugin)
63 existing.update('description', self.description)
64 existing.update('allow_repeatable_abilities', self.allow_repeatable_abilities)
65 return existing
66
67 async def which_plugin(self):
68 return self.plugin

Callers

nothing calls this directly

Calls 2

retrieveMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected