Simple Agent Builder
data class SimpleAgentBuilder<RESULT : Any>(resultClass: Class<RESULT>, inputClasses: List<Class<out Any>> = emptyList()) : WorkFlowBuilderConsuming, WorkFlowBuilderWithInput
Simplest way to build an agent that performs a single operation, like an LLM call.
Constructors
Types
Link copied to clipboard
Link copied to clipboard
inner class Emitter(generator: (SupplierActionContext<RESULT>) -> RESULT, mustRun: Boolean = false) : WorkflowBuilder<RESULT>
Link copied to clipboard
Functions
Link copied to clipboard
fun running(generator: (SupplierActionContext<RESULT>) -> RESULT): SimpleAgentBuilder.Emitter<RESULT>
Provide a function the agent will perform.