First Question:
I am currently integrating AgentScope Java into a Spring Boot application.
In my current implementation, every time the /chat endpoint receives a request, I instantiate a new ReactAgent object to handle that specific request.
**Is this the recommended approach?**Are there better ways to manage the lifecycle of ReactAgent instances in a Spring Boot environment?
Second Question:
I am trying to integrate AgentScope Studio into my Spring Boot project, but I have encountered two challenges regarding the setup and data transmission.
- I am unsure about the correct lifecycle stage to initialize the StudioManager.
- Should it be initialized during the Spring application startup (e.g., in a @PostConstruct method or a CommandLineRunner)?
- Or should it be initialized lazily when the first agent is created?
- My API endpoints return streaming responses ,How should I forward these streaming messages to Studio?
Could you please provide some recommendations or best practices for these issues?If there are any relevant documentation pages, integration guides, or example projects that demonstrate this setup, sharing those links would be extremely helpful.
Thank you!
First Question:
I am currently integrating AgentScope Java into a Spring Boot application.
In my current implementation, every time the /chat endpoint receives a request, I instantiate a new ReactAgent object to handle that specific request.
**Is this the recommended approach?**Are there better ways to manage the lifecycle of ReactAgent instances in a Spring Boot environment?
Second Question:
I am trying to integrate AgentScope Studio into my Spring Boot project, but I have encountered two challenges regarding the setup and data transmission.
Could you please provide some recommendations or best practices for these issues?If there are any relevant documentation pages, integration guides, or example projects that demonstrate this setup, sharing those links would be extremely helpful.
Thank you!