SimpleAgentBuilder

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.

Constructors

Link copied to clipboard
constructor(resultClass: Class<RESULT>, inputClass: Class<out Any>? = null)

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

Specify the input type for this workflow. Return a builder

Link copied to clipboard

Provide a function the agent will perform to generate a draft on each iteration