Package org.bsc.langgraph4j.studio.jetty
Class LangGraphStudioServer4Jetty.Builder
java.lang.Object
org.bsc.langgraph4j.studio.jetty.LangGraphStudioServer4Jetty.Builder
- Enclosing class:
- LangGraphStudioServer4Jetty
Builder class for constructing LangGraphStreamingServerJetty instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns a LangGraphStreamingServerJetty instance.instance
(String id, LangGraphStudioServer.Instance instance) port
(int port) Sets the port for the server.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
port
Sets the port for the server.- Parameters:
port
- the port number- Returns:
- the Builder instance
-
instance
public LangGraphStudioServer4Jetty.Builder instance(String id, LangGraphStudioServer.Instance instance) -
instance
public LangGraphStudioServer4Jetty.Builder instance(Map.Entry<String, LangGraphStudioServer.Instance> entry) -
filter
public LangGraphStudioServer4Jetty.Builder filter(Consumer<org.eclipse.jetty.ee10.servlet.ServletContextHandler> filterHandler) -
build
Builds and returns a LangGraphStreamingServerJetty instance.- Returns:
- a new LangGraphStreamingServerJetty instance
- Throws:
NullPointerException
- if the stateGraph is nullException
- if an error occurs during server setup
-