Package org.bsc.spring
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 Summary
-
Method Summary
-
Constructor Details
-
DemoConsoleController
-
-
Method Details
-
run
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 interfaceorg.springframework.boot.CommandLineRunner
- Parameters:
args
- Command line arguments (Unused in this context)- Throws:
Exception
- If any error occurs during execution
-