Package com.embabel.agent.api.common
Interface TypedOps
-
- All Implemented Interfaces:
public interface TypedOpsEnables typed operations using agentic systems
-
-
Method Summary
Modifier and Type Method Description <I extends Any, O extends Any> Otransform(I input, Class<O> outputClass, ProcessOptions processOptions)Transform between these two types if possible. abstract <I extends Any, O extends Any> AgentFunction<I, O>asFunction(Class<O> outputClass)Return a reusable function that performs this transformation. abstract <I extends Any, O extends Any> AgentFunction<I, O>asFunction(Class<O> outputClass, String agentName)<O extends Any> OhandleUserInput(String intent, Class<O> outputClass, ProcessOptions processOptions)Transform user input into the target type -
-
Method Detail
-
transform
<I extends Any, O extends Any> O transform(I input, Class<O> outputClass, ProcessOptions processOptions)
Transform between these two types if possible.
-
asFunction
abstract <I extends Any, O extends Any> AgentFunction<I, O> asFunction(Class<O> outputClass)
Return a reusable function that performs this transformation. Validates whether it's possible and include metadata.
-
asFunction
abstract <I extends Any, O extends Any> AgentFunction<I, O> asFunction(Class<O> outputClass, String agentName)
-
handleUserInput
<O extends Any> O handleUserInput(String intent, Class<O> outputClass, ProcessOptions processOptions)
Transform user input into the target type
-
-
-
-