MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / validate_argument_count

Method validate_argument_count

graphlite/src/functions/function_trait.rs:97–105  ·  view source on GitHub ↗

Check if the function has the expected number of arguments

(&self, expected: usize)

Source from the content-addressed store, hash-verified

95
96 /// Check if the function has the expected number of arguments
97 pub fn validate_argument_count(&self, expected: usize) -> FunctionResult<()> {
98 if self.argument_count() != expected {
99 return Err(FunctionError::InvalidArgumentCount {
100 expected,
101 actual: self.argument_count(),
102 });
103 }
104 Ok(())
105 }
106}
107
108/// Core trait for all functions - just implement this for any function

Callers 5

executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls 1

argument_countMethod · 0.45

Tested by

no test coverage detected