TypedInvocationHandler
typealias TypedInvocationHandler<I, O> = suspend RoutingContext.(input: I, context: AgentCoreContext) -> O(source)
Typed handler for invocation requests — convenience for the common JSON-in / JSON-out case.
Receives the request body already deserialized into I and returns a value of type O that is serialized back to the client. Both directions are handled by Ktor's ContentNegotiation plugin, so the request Content-Type (e.g. application/json) and the response Accept header drive the conversion. Requires ContentNegotiation (e.g. json()) to be installed.
Registered via handle.