SimpleAgentBuilder

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

Link copied to clipboard
constructor(resultClass: Class<RESULT>, inputClasses: List<Class<out Any>> = emptyList())

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
inner class SimpleAgentConsumer<INPUT : Any>(inputClass: Class<INPUT>)

Functions

Link copied to clipboard
Link copied to clipboard

Provide a function the agent will perform.

Link copied to clipboard
open override fun withInput(inputClass: Class<out Any>): SimpleAgentBuilder<RESULT>

Specify an input class for this workflow agent.