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

Method update_fact

app/service/knowledge_svc.py:27–29  ·  view source on GitHub ↗
(self, criteria, updates)

Source from the content-addressed store, hash-verified

25 return await self.__loaded_knowledge_module._add_fact(fact, constraints)
26
27 async def update_fact(self, criteria, updates):
28 await self.get_service('event_svc').fire_event(exchange='fact', queue='updated', criteria=criteria, updates=updates)
29 return await self.__loaded_knowledge_module._update_fact(criteria, updates)
30
31 async def get_facts(self, criteria, restrictions=None):
32 return await self.__loaded_knowledge_module._get_facts(criteria, restrictions)

Callers 4

save_factMethod · 0.45
update_scoresFunction · 0.45
update_factsMethod · 0.45
test_update_factMethod · 0.45

Calls 3

get_serviceMethod · 0.80
_update_factMethod · 0.80
fire_eventMethod · 0.45

Tested by 1

test_update_factMethod · 0.36