MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / invoke

Method invoke

subprojects/llama.cpp/common/jinja/value.h:701–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699 val_func = func;
700 }
701 virtual value invoke(const func_args & args) const override {
702 func_args new_args(args); // copy
703 new_args.func_name = name;
704 if (arg0) {
705 new_args.push_front(arg0);
706 }
707 return val_func(new_args);
708 }
709 virtual std::string type() const override { return "Function"; }
710 virtual std::string as_repr() const override { return type() + "<" + name + ">(" + (arg0 ? arg0->as_repr() : "") + ")"; }
711 virtual bool is_hashable() const override { return false; }

Callers

nothing calls this directly

Calls 1

push_frontMethod · 0.80

Tested by

no test coverage detected