KFunctionAdapter
A Quarkdown Function adapted from a regular Kotlin KFunction.
Reflection metadata is read eagerly once at construction and cached as immutable state, so each call site (name lookup, parameter introspection, validator selection, invocation) is a direct field read rather than a fresh reflection scan.
Parameters
Kotlin function to adapt
Properties
Function that maps the input arguments into an output value. Arguments and parameters compliance in terms of matching types and count is not checked here. The ArgumentBindings allow looking up argument values by their parameter.
Declared parameters.
Validators that check the validity of a function call towards this function. If a condition is not met during the validation, an exception should be thrown.
Functions
Renders this function's signature as a human-readable string. Injected parameters (FunctionParameter.isInjected) are omitted — they aren't part of the surface that callers see and shouldn't clutter the rendered signature.