Class DemoConsoleController

java.lang.Object
org.bsc.spring.DemoConsoleController
All Implemented Interfaces:
org.springframework.boot.CommandLineRunner

@Controller public class DemoConsoleController extends Object implements org.springframework.boot.CommandLineRunner
Demonstrates the use of Spring Boot CLI to execute a task using an agent executor.
  • Constructor Details

    • DemoConsoleController

      public DemoConsoleController(AgentExecutor agentExecutor)
  • Method Details

    • run

      public void run(String... args) throws Exception
      Executes the command-line interface to demonstrate a Spring Boot application. This method logs a welcome message, constructs a graph using an agent executor, compiles it into a workflow, invokes the workflow with a specific input, and then logs the final result.
      Specified by:
      run in interface org.springframework.boot.CommandLineRunner
      Parameters:
      args - Command line arguments (Unused in this context)
      Throws:
      Exception - If any error occurs during execution