Simple Agent Builder
data class SimpleAgentBuilder<RESULT : Any>(resultClass: Class<RESULT>, inputClass: Class<out Any>? = null) : WorkflowBuilderConsuming
Simplest way to build an agent that performs a single operation, like an LLM call.
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 to generate a draft on each iteration