StatefulSingleUseAIAgent

constructor(logger: KLogger, id: String? = null)(source)

Parameters

Input

the type of the input accepted by the agent.

Output

the type of the output produced by the agent.

TContext

the type of the context used during the agent's execution, extending AIAgentContext.

id

the unique identifier for the agent. Random UUID will be generated if set to null.