withResultType

open fun <U : Any> withResultType(resultType: Class<U>): AgentInvocation<U>

Deprecated

Use returning instead

Replace with

returning(resultType)