AIAgentNodeBuilderWithInput

class AIAgentNodeBuilderWithInput<Input : Any>(name: String?, inputTypeToken: ERROR CLASS: Symbol not found for TypeToken)(source)

A Java builder class for creating AIAgentNode with a specified input type.

Type Parameters

Input

The type of input data the AIAgentNode will process.

Constructors

Link copied to clipboard
constructor(name: String?, inputTypeToken: ERROR CLASS: Symbol not found for TypeToken)

Functions

Link copied to clipboard

Appends a prompt to the AI agent node configuration.

Link copied to clipboard
fun llmAsAJudge(task: String, llmModel: ERROR CLASS: Symbol not found for LLModel?? = null): AIAgentNodeBase<Input, CriticResult<Input>>

Configures an AI agent node to evaluate and critique input data as a simulated "judge" using a specified task and an optional Large Language Model (LLM).

Link copied to clipboard
fun llmRequestStreamingAndSendResults(structureDefinition: ERROR CLASS: Symbol not found for StructureDefinition?? = null): AIAgentNodeBase<Input, ERROR CLASS: Symbol not found for Message.Assistant>

Sends a streaming request to the Large Language Model (LLM), accumulates the streamed frames into a single Message.Assistant, and returns it as this node's output.

Link copied to clipboard
fun <T> setStructuredOutput(config: ERROR CLASS: Symbol not found for StructuredRequestConfig<T>): AIAgentNodeBase<Input, Input>

Configures the node to produce a structured output based on the specified configuration.

Link copied to clipboard
fun <Output : Any> withOutput(typeToken: ERROR CLASS: Symbol not found for TypeToken): TypedAIAgentNodeBuilder<Input, Output>

Specifies the output type for the AI agent node and returns a builder for creating a typed AI agent node.

Specifies the output type for the AIAgentNode and returns a builder for creating a typed AIAgentNode.