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

Method has_fact

app/objects/c_operation.py:199–203  ·  view source on GitHub ↗
(self, trait, value)

Source from the content-addressed store, hash-verified

197 return seeded_facts + learned_facts
198
199 async def has_fact(self, trait, value):
200 for f in await self.all_facts():
201 if f.trait == trait and f.value == value:
202 return True
203 return False
204
205 async def all_relationships(self):
206 knowledge_svc_handle = BaseService.get_service('knowledge_svc')

Callers 1

_apply_adjustmentsMethod · 0.80

Calls 1

all_factsMethod · 0.95

Tested by

no test coverage detected