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

Method _verify_default_objective_exists

app/service/data_svc.py:472–475  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

470 continue
471
472 async def _verify_default_objective_exists(self):
473 if not await self.locate('objectives', match=dict(name='default')):
474 await self.store(Objective(id='495a9828-cab1-44dd-a0ca-66e58177d8cc', name='default',
475 description='This is a default objective that runs forever.', goals=[Goal()]))
476
477 async def _verify_adversary_profiles(self):
478 for adv in await self.locate('adversaries'):

Callers 1

_verify_data_setsMethod · 0.95

Calls 4

locateMethod · 0.95
storeMethod · 0.95
ObjectiveClass · 0.90
GoalClass · 0.90

Tested by

no test coverage detected