MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_intent

Function is_intent

atomic-repository/src/workflow_usage.rs:154–165  ·  view source on GitHub ↗
(node: &KgNode)

Source from the content-addressed store, hash-verified

152}
153
154fn is_intent(node: &KgNode) -> bool {
155 node.types
156 .iter()
157 .filter_map(|kind| C::from_iri(kind))
158 .any(|kind| {
159 kind == C::WorkIntent
160 || kind
161 .parents()
162 .iter()
163 .any(|parent| parent.iri() == C::WorkIntent.iri())
164 })
165}
166
167#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
168struct Tokens {

Callers 2

enrich_workflow_usageMethod · 0.85
annotate_with_viewsFunction · 0.85

Calls 2

iriMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected