TypedOps

interface TypedOps

Enables typed operations using agentic systems

Inheritors

Functions

Link copied to clipboard
abstract fun <I : Any, O> asFunction(outputClass: Class<O>): AgentFunction<I, O>

Return a reusable function that performs this transformation. Validates whether it's possible and include metadata.

abstract fun <I : Any, O> asFunction(outputClass: Class<O>, agentName: String): AgentFunction<I, O>
Link copied to clipboard
inline fun <I : Any, O> TypedOps.asFunction(): AgentFunction<I, O>
Link copied to clipboard
open fun <O> handleUserInput(intent: String, outputClass: Class<O>, processOptions: ProcessOptions = ProcessOptions()): O

Transform user input into the target type

Link copied to clipboard
inline fun <O> TypedOps.handleUserInput(intent: String, processOptions: ProcessOptions = ProcessOptions()): O

Turn user input into this type

Link copied to clipboard
open fun <I : Any, O> transform(input: I, outputClass: Class<O>, processOptions: ProcessOptions = ProcessOptions()): O

Transform between these two types if possible.

Link copied to clipboard
inline fun <I : Any, O : Any> TypedOps.transform(input: I, processOptions: ProcessOptions = ProcessOptions()): O

Perform the magic trick of getting from A to B

fun <I : Any, O : Any> TypedOps.transform(input: I, processOptions: ProcessOptions = ProcessOptions(), outputClass: Class<O>): O