toFunctionMetadata

Parses a Kotlin function to create function accessor metadata.

Analyzes the function's parameters, annotations, and context to determine how it should be invoked as a message function.

Return

Metadata describing how to invoke this function

Parameters

accessorFactory

Factory function to create the function accessor

Throws

if the function is not properly annotated


Creates function metadata using a simple function accessor.

Return

Metadata for synchronous function invocation