build
Builds and returns an instance of AIAgent<Input, Output> based on the current configuration of the FunctionalAgentBuilder. This method ensures that all required fields are set, and applies any configured feature installers to the agent.
Return
an instance of AIAgent<Input, Output> created using the provided configuration.
Throws
if required fields, such as promptExecutor or llmModel, are not set.