Index

A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

accept(T) - Method in interface org.bsc.langgraph4j.utils.TryConsumer
 
addConditionalEdges(String, AsyncEdgeAction<State>, Map<String, String>) - Method in class org.bsc.langgraph4j.StateGraph
Adds conditional edges to the graph.
addEdge(String, String) - Method in class org.bsc.langgraph4j.StateGraph
Adds an edge to the graph.
addNode(String, AsyncNodeAction<State>) - Method in class org.bsc.langgraph4j.StateGraph
/** Adds a node to the graph.
addNode(String, AsyncNodeActionWithConfig<State>) - Method in class org.bsc.langgraph4j.StateGraph
 
addSubgraph(String, CompiledGraph<State>) - Method in class org.bsc.langgraph4j.StateGraph
Adds a subgraph to the state graph by creating a node with the specified identifier.
addSubgraph(String, StateGraph<State>) - Method in class org.bsc.langgraph4j.StateGraph
Adds a subgraph to the state graph by creating a node with the specified identifier.
AgentState - Class in org.bsc.langgraph4j.state
Represents the state of an agent with a map of data.
AgentState(Map<String, Object>) - Constructor for class org.bsc.langgraph4j.state.AgentState
Constructs an AgentState with the given initial data.
AgentStateFactory<State extends AgentState> - Interface in org.bsc.langgraph4j.state
A factory interface for creating instances of AgentState.
append(Object) - Method in class org.bsc.langgraph4j.state.AppendableValueRW
Deprecated.
Appends a value or a collection of values to the list.
appendableValue(String) - Method in class org.bsc.langgraph4j.state.AgentState
Deprecated.
use Channel instead
AppendableValue<T> - Interface in org.bsc.langgraph4j.state
Deprecated, for removal: This API element is subject to removal in a future version.
AppendableValueRW<T> - Class in org.bsc.langgraph4j.state
Deprecated, for removal: This API element is subject to removal in a future version.
AppendableValueRW() - Constructor for class org.bsc.langgraph4j.state.AppendableValueRW
Deprecated.
Constructs an AppendableValueRW with an empty list of values.
AppendableValueRW(Collection<T>) - Constructor for class org.bsc.langgraph4j.state.AppendableValueRW
Deprecated.
Constructs an AppendableValueRW with the given initial collection of values.
AppenderChannel<T> - Class in org.bsc.langgraph4j.state
AppenderChannel is a Channel implementation that is used to accumulate a list of values.
AppenderChannel.RemoveIdentifier<T> - Interface in org.bsc.langgraph4j.state
A functional interface that is used to remove elements from a list.
appendFooter(DiagramGenerator.Context) - Method in class org.bsc.langgraph4j.diagram.MermaidGenerator
 
appendFooter(DiagramGenerator.Context) - Method in class org.bsc.langgraph4j.diagram.PlantUMLGenerator
 
appendFooter(DiagramGenerator.Context) - Method in class org.bsc.langgraph4j.DiagramGenerator
Appends a footer to the content.
appendHeader(DiagramGenerator.Context) - Method in class org.bsc.langgraph4j.diagram.MermaidGenerator
 
appendHeader(DiagramGenerator.Context) - Method in class org.bsc.langgraph4j.diagram.PlantUMLGenerator
 
appendHeader(DiagramGenerator.Context) - Method in class org.bsc.langgraph4j.DiagramGenerator
Appends a header to the output based on the provided context.
apply(S) - Method in interface org.bsc.langgraph4j.action.AsyncEdgeAction
Applies this action to the given agent state.
apply(S) - Method in interface org.bsc.langgraph4j.action.AsyncNodeAction
Applies this action to the given agent state.
apply(S) - Method in interface org.bsc.langgraph4j.action.EdgeAction
Applies this action to the given agent state.
apply(S, RunnableConfig) - Method in interface org.bsc.langgraph4j.action.AsyncNodeActionWithConfig
Applies this action to the given agent state.
apply(S, RunnableConfig) - Method in interface org.bsc.langgraph4j.action.NodeActionWithConfig
 
apply(T) - Method in interface org.bsc.langgraph4j.action.NodeAction
 
AsyncEdgeAction<S extends AgentState> - Interface in org.bsc.langgraph4j.action
Represents an asynchronous edge action that operates on an agent state and returns a new route.
AsyncNodeAction<S extends AgentState> - Interface in org.bsc.langgraph4j.action
Represents an asynchronous node action that operates on an agent state and returns state update.
AsyncNodeActionWithConfig<S extends AgentState> - Interface in org.bsc.langgraph4j.action
Represents an asynchronous action that can be executed with a configuration.
AsyncNodeGenerator(Map<String, Object>, RunnableConfig) - Constructor for class org.bsc.langgraph4j.CompiledGraph.AsyncNodeGenerator
 
available() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 

B

BaseCheckpointSaver - Interface in org.bsc.langgraph4j.checkpoint
 
build() - Method in class org.bsc.langgraph4j.checkpoint.Checkpoint.Builder
 
build() - Method in class org.bsc.langgraph4j.CompileConfig.Builder
 
build() - Method in class org.bsc.langgraph4j.RunnableConfig.Builder
Constructs and returns the configured RunnableConfig object.
builder() - Static method in class org.bsc.langgraph4j.checkpoint.Checkpoint
 
builder() - Static method in class org.bsc.langgraph4j.CompileConfig
 
builder() - Static method in class org.bsc.langgraph4j.RunnableConfig
Creates a new instance of the RunnableConfig.Builder class.
builder(RunnableConfig) - Static method in class org.bsc.langgraph4j.RunnableConfig
Creates a new Builder instance with the specified RunnableConfig.
Builder() - Constructor for class org.bsc.langgraph4j.checkpoint.Checkpoint.Builder
 
Builder() - Constructor for class org.bsc.langgraph4j.CompileConfig.Builder
 
buildNodeOutput(String) - Method in class org.bsc.langgraph4j.CompiledGraph.AsyncNodeGenerator
 
buildStateSnapshot(Checkpoint) - Method in class org.bsc.langgraph4j.CompiledGraph.AsyncNodeGenerator
 

C

call(DiagramGenerator.Context, String, String) - Method in class org.bsc.langgraph4j.diagram.MermaidGenerator
 
call(DiagramGenerator.Context, String, String) - Method in class org.bsc.langgraph4j.diagram.PlantUMLGenerator
 
call(DiagramGenerator.Context, String, String) - Method in class org.bsc.langgraph4j.DiagramGenerator
This method is an abstract method that must be implemented by subclasses.
call(DiagramGenerator.Context, String, String, String) - Method in class org.bsc.langgraph4j.diagram.MermaidGenerator
 
call(DiagramGenerator.Context, String, String, String) - Method in class org.bsc.langgraph4j.diagram.PlantUMLGenerator
 
call(DiagramGenerator.Context, String, String, String) - Method in class org.bsc.langgraph4j.DiagramGenerator
Abstract method that must be implemented by subclasses to handle the logic of making a call.
Channel<T> - Interface in org.bsc.langgraph4j.state
A Channel is a mechanism used to maintain a state property.
Checkpoint - Class in org.bsc.langgraph4j.checkpoint
Represents a checkpoint of an agent state.
Checkpoint(Checkpoint) - Constructor for class org.bsc.langgraph4j.checkpoint.Checkpoint
 
Checkpoint.Builder - Class in org.bsc.langgraph4j.checkpoint
 
checkPointId() - Method in class org.bsc.langgraph4j.RunnableConfig
Returns the current checkPointId wrapped in an Optional.
checkPointId(String) - Method in class org.bsc.langgraph4j.RunnableConfig.Builder
Sets the checkpoint ID for the configuration.
checkpointSaver() - Method in class org.bsc.langgraph4j.CompileConfig
 
checkpointSaver(BaseCheckpointSaver) - Method in class org.bsc.langgraph4j.CompileConfig.Builder
 
chunk() - Method in class org.bsc.langgraph4j.streaming.StreamingOutput
 
clear(RunnableConfig) - Method in class org.bsc.langgraph4j.checkpoint.FileSystemSaver
Clears the checkpoint file associated with the given RunnableConfig.
cloneObject(Map<String, Object>) - Method in class org.bsc.langgraph4j.serializer.StateSerializer
 
cloneObject(T) - Method in interface org.bsc.langgraph4j.serializer.Serializer
 
close() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
CollectionsUtils - Class in org.bsc.langgraph4j.utils
Utility class for creating collections.
CollectionsUtils() - Constructor for class org.bsc.langgraph4j.utils.CollectionsUtils
 
commentLine(DiagramGenerator.Context, boolean) - Method in class org.bsc.langgraph4j.diagram.MermaidGenerator
 
commentLine(DiagramGenerator.Context, boolean) - Method in class org.bsc.langgraph4j.diagram.PlantUMLGenerator
 
commentLine(DiagramGenerator.Context, boolean) - Method in class org.bsc.langgraph4j.DiagramGenerator
Comment a line in the given context.
compareTo(T, int) - Method in interface org.bsc.langgraph4j.state.AppenderChannel.RemoveIdentifier
Compares the specified element with the element at the given index.
compareTo(T, int) - Method in record class org.bsc.langgraph4j.state.RemoveByHash
Compares the hash code of this object with another element at a specific index.
compile() - Method in class org.bsc.langgraph4j.StateGraph
Compiles the state graph into a compiled graph.
compile(CompileConfig) - Method in class org.bsc.langgraph4j.StateGraph
Compiles the state graph into a compiled graph.
compileConfig - Variable in class org.bsc.langgraph4j.CompiledGraph
 
CompileConfig - Class in org.bsc.langgraph4j
 
CompileConfig.Builder - Class in org.bsc.langgraph4j
 
CompiledGraph<State extends AgentState> - Class in org.bsc.langgraph4j
Represents a compiled graph of nodes and edges.
CompiledGraph(StateGraph<State>, CompileConfig) - Constructor for class org.bsc.langgraph4j.CompiledGraph
Constructs a CompiledGraph with the given StateGraph.
CompiledGraph.AsyncNodeGenerator<Output extends NodeOutput<State>> - Class in org.bsc.langgraph4j
Async Generator for streaming outputs.
CompiledGraph.StreamMode - Enum Class in org.bsc.langgraph4j
 
config() - Method in class org.bsc.langgraph4j.state.StateSnapshot
 
Context() - Constructor for class org.bsc.langgraph4j.DiagramGenerator.Context
 

D

data() - Method in class org.bsc.langgraph4j.state.AgentState
Returns an unmodifiable view of the data map.
declareConditionalEdge(DiagramGenerator.Context, int) - Method in class org.bsc.langgraph4j.diagram.MermaidGenerator
 
declareConditionalEdge(DiagramGenerator.Context, int) - Method in class org.bsc.langgraph4j.diagram.PlantUMLGenerator
 
declareConditionalEdge(DiagramGenerator.Context, int) - Method in class org.bsc.langgraph4j.DiagramGenerator
Declares a conditional edge in the context with a specified ordinal.
declareConditionalStart(DiagramGenerator.Context, String) - Method in class org.bsc.langgraph4j.diagram.MermaidGenerator
 
declareConditionalStart(DiagramGenerator.Context, String) - Method in class org.bsc.langgraph4j.diagram.PlantUMLGenerator
 
declareConditionalStart(DiagramGenerator.Context, String) - Method in class org.bsc.langgraph4j.DiagramGenerator
Declares a conditional element in the configuration or template.
declareNode(DiagramGenerator.Context, String) - Method in class org.bsc.langgraph4j.diagram.MermaidGenerator
 
declareNode(DiagramGenerator.Context, String) - Method in class org.bsc.langgraph4j.diagram.PlantUMLGenerator
 
declareNode(DiagramGenerator.Context, String) - Method in class org.bsc.langgraph4j.DiagramGenerator
Declares a node in the specified context with the given name.
DiagramGenerator - Class in org.bsc.langgraph4j
Abstract class for diagram generation.
DiagramGenerator() - Constructor for class org.bsc.langgraph4j.DiagramGenerator
 
DiagramGenerator.Context - Class in org.bsc.langgraph4j
Class that represents a context with various properties and methods.

E

edge_async(EdgeAction<S>) - Static method in interface org.bsc.langgraph4j.action.AsyncEdgeAction
Creates an asynchronous edge action from a synchronous edge action.
EdgeAction<S extends AgentState> - Interface in org.bsc.langgraph4j.action
Represents an edge action that operates on an agent state and returns a result.
EdgeValue<State extends AgentState> - Class in org.bsc.langgraph4j
 
EdgeValue() - Constructor for class org.bsc.langgraph4j.EdgeValue
 
END - Static variable in class org.bsc.langgraph4j.StateGraph
 
equals(Object) - Method in record class org.bsc.langgraph4j.state.RemoveByHash
Indicates whether some other object is "equal to" this one.

F

FileSystemSaver - Class in org.bsc.langgraph4j.checkpoint
A CheckpointSaver that stores Checkpoints in the filesystem.
FileSystemSaver(Path, StateSerializer<? extends AgentState>) - Constructor for class org.bsc.langgraph4j.checkpoint.FileSystemSaver
 

G

generate(StateGraph<State>, String, boolean) - Method in class org.bsc.langgraph4j.DiagramGenerator
Generate a textual representation of the given graph.
generate(StateGraph<State>, DiagramGenerator.Context) - Method in class org.bsc.langgraph4j.DiagramGenerator
Generates a context based on the given state graph.
get(RunnableConfig) - Method in interface org.bsc.langgraph4j.checkpoint.BaseCheckpointSaver
 
get(RunnableConfig) - Method in class org.bsc.langgraph4j.checkpoint.FileSystemSaver
 
get(RunnableConfig) - Method in class org.bsc.langgraph4j.checkpoint.MemorySaver
 
getChannels() - Method in class org.bsc.langgraph4j.StateGraph
 
getCheckpoints(RunnableConfig) - Method in class org.bsc.langgraph4j.checkpoint.FileSystemSaver
 
getCheckpoints(RunnableConfig) - Method in class org.bsc.langgraph4j.checkpoint.MemorySaver
 
getConfig() - Method in class org.bsc.langgraph4j.state.StateSnapshot
Deprecated.
getDefault() - Method in class org.bsc.langgraph4j.state.AppenderChannel
Returns the default provider or Optional.empty() if no default provider is set.
getDefault() - Method in interface org.bsc.langgraph4j.state.Channel
a Supplier that provide a default value.
getDefaultSerializer() - Method in class org.bsc.langgraph4j.serializer.std.SerializerMapper
 
getEntryPoint() - Method in class org.bsc.langgraph4j.CompiledGraph
Deprecated, for removal: This API element is subject to removal in a future version.
getEntryPoint() - Method in class org.bsc.langgraph4j.StateGraph
Deprecated, for removal: This API element is subject to removal in a future version.
getFinishPoint() - Method in class org.bsc.langgraph4j.CompiledGraph
Deprecated, for removal: This API element is subject to removal in a future version.
getFinishPoint() - Method in class org.bsc.langgraph4j.StateGraph
Deprecated, for removal: This API element is subject to removal in a future version.
getGraph(GraphRepresentation.Type) - Method in class org.bsc.langgraph4j.CompiledGraph
Generates a drawable graph representation of the state graph with default title.
getGraph(GraphRepresentation.Type, String) - Method in class org.bsc.langgraph4j.CompiledGraph
Generates a drawable graph representation of the state graph.
getGraph(GraphRepresentation.Type, String) - Method in class org.bsc.langgraph4j.StateGraph
Generates a drawable graph representation of the state graph.
getGraph(GraphRepresentation.Type, String, boolean) - Method in class org.bsc.langgraph4j.CompiledGraph
Generates a drawable graph representation of the state graph.
getGraph(GraphRepresentation.Type, String, boolean) - Method in class org.bsc.langgraph4j.StateGraph
Generates a drawable graph representation of the state graph.
getLast(LinkedList<Checkpoint>, RunnableConfig) - Method in class org.bsc.langgraph4j.checkpoint.MemorySaver
 
getNext() - Method in class org.bsc.langgraph4j.state.StateSnapshot
Deprecated.
getReducer() - Method in class org.bsc.langgraph4j.state.AppenderChannel
Returns an Optional containing the current reducer if it is non-null.
getReducer() - Method in interface org.bsc.langgraph4j.state.Channel
The Reducer, if provided, is invoked for each state property to compute value.
getSerializer(Class<?>) - Method in class org.bsc.langgraph4j.serializer.std.SerializerMapper
 
getSerializer(String) - Method in class org.bsc.langgraph4j.serializer.std.SerializerMapper
 
getState() - Method in class org.bsc.langgraph4j.NodeOutput
Deprecated.
Use NodeOutput.state() instead.
getState(RunnableConfig) - Method in class org.bsc.langgraph4j.CompiledGraph
Same of CompiledGraph.stateOf(RunnableConfig) but throws an IllegalStateException if checkpoint is not found.
getStateFactory() - Method in class org.bsc.langgraph4j.StateGraph
 
getStateHistory(RunnableConfig) - Method in class org.bsc.langgraph4j.CompiledGraph
 
getStateType() - Method in class org.bsc.langgraph4j.serializer.plain_text.PlainTextStateSerializer
 
GraphRepresentation - Class in org.bsc.langgraph4j
The graph representation in diagram-as-a-code format.
GraphRepresentation() - Constructor for class org.bsc.langgraph4j.GraphRepresentation
 
GraphRepresentation.Type - Enum Class in org.bsc.langgraph4j
The supported types.
GraphRunnerException - Exception in org.bsc.langgraph4j
Exception thrown when there is an error during the execution of a graph runner.
GraphRunnerException(String) - Constructor for exception org.bsc.langgraph4j.GraphRunnerException
Constructs a new GraphRunnerException with the specified error message.
GraphStateException - Exception in org.bsc.langgraph4j
Exception thrown when there is an error related to the state of a graph.
GraphStateException(String) - Constructor for exception org.bsc.langgraph4j.GraphStateException
Constructs a new GraphStateException with the specified error message.
gson - Variable in class org.bsc.langgraph4j.serializer.plain_text.gson.GsonStateSerializer
 
GsonStateSerializer<State extends AgentState> - Class in org.bsc.langgraph4j.serializer.plain_text.gson
Base Implementation of PlainTextStateSerializer using GSON library .
GsonStateSerializer(AgentStateFactory<State>) - Constructor for class org.bsc.langgraph4j.serializer.plain_text.gson.GsonStateSerializer
 
GsonStateSerializer(AgentStateFactory<State>, Gson) - Constructor for class org.bsc.langgraph4j.serializer.plain_text.gson.GsonStateSerializer
 

H

hashCode() - Method in record class org.bsc.langgraph4j.state.RemoveByHash
Returns a hash code value for this object.

I

id(String) - Method in class org.bsc.langgraph4j.checkpoint.Checkpoint.Builder
 
interruptAfter(String...) - Method in class org.bsc.langgraph4j.CompileConfig.Builder
 
interruptBefore(String...) - Method in class org.bsc.langgraph4j.CompileConfig.Builder
 
invoke(Map<String, Object>) - Method in class org.bsc.langgraph4j.CompiledGraph
Invokes the graph execution with the provided inputs and returns the final state.
invoke(Map<String, Object>, RunnableConfig) - Method in class org.bsc.langgraph4j.CompiledGraph
Invokes the graph execution with the provided inputs and returns the final state.
isEmpty() - Method in interface org.bsc.langgraph4j.state.AppendableValue
Deprecated.
Checks if the value list is empty.
isEmpty() - Method in class org.bsc.langgraph4j.state.AppendableValueRW
Deprecated.
Checks if the list of values is empty.

J

JacksonStateSerializer<State extends AgentState> - Class in org.bsc.langgraph4j.serializer.plain_text.jackson
Base Implementation of PlainTextStateSerializer using Jackson library.
JacksonStateSerializer(AgentStateFactory<State>, ObjectMapper) - Constructor for class org.bsc.langgraph4j.serializer.plain_text.jackson.JacksonStateSerializer
 
JacksonStateSerializer(AgentStateFactory<State>) - Constructor for class org.bsc.langgraph4j.serializer.plain_text.jackson.JacksonStateSerializer
 

L

last() - Method in interface org.bsc.langgraph4j.state.AppendableValue
Deprecated.
Returns the last value in the list, if present.
last() - Method in class org.bsc.langgraph4j.state.AppendableValueRW
Deprecated.
Returns the last value in the list, if present.
last(List<T>) - Static method in class org.bsc.langgraph4j.utils.CollectionsUtils
Returns the last value in the list, if present.
lastMessage() - Method in class org.bsc.langgraph4j.prebuilt.MessagesState
Returns the last value in the list, if present.
lastMinus(int) - Method in class org.bsc.langgraph4j.prebuilt.MessagesState
Returns the value at the specified position from the end of the list, if present.
lastMinus(int) - Method in interface org.bsc.langgraph4j.state.AppendableValue
Deprecated.
Returns the value at the specified position from the end of the list, if present.
lastMinus(int) - Method in class org.bsc.langgraph4j.state.AppendableValueRW
Deprecated.
Returns the value at the specified position from the end of the list, if present.
lastMinus(List<T>, int) - Static method in class org.bsc.langgraph4j.utils.CollectionsUtils
Returns the value at the specified position from the end of the list, if present.
list(RunnableConfig) - Method in interface org.bsc.langgraph4j.checkpoint.BaseCheckpointSaver
 
list(RunnableConfig) - Method in class org.bsc.langgraph4j.checkpoint.FileSystemSaver
 
list(RunnableConfig) - Method in class org.bsc.langgraph4j.checkpoint.MemorySaver
 
listOf(Class<T>) - Static method in class org.bsc.langgraph4j.utils.CollectionsUtils
 
listOf(T...) - Static method in class org.bsc.langgraph4j.utils.CollectionsUtils
Creates a list containing the provided elements.
log - Static variable in interface org.bsc.langgraph4j.utils.TryConsumer
 

M

mapOf() - Static method in class org.bsc.langgraph4j.utils.CollectionsUtils
Creates an empty map.
mapOf(K, V) - Static method in class org.bsc.langgraph4j.utils.CollectionsUtils
Creates a map containing a single key-value pair.
mapOf(K, V, K, V) - Static method in class org.bsc.langgraph4j.utils.CollectionsUtils
Creates a map containing two key-value pairs.
mapOf(K, V, K, V, K, V) - Static method in class org.bsc.langgraph4j.utils.CollectionsUtils
Creates a map containing three key-value pairs.
mapOf(K, V, K, V, K, V, K, V) - Static method in class org.bsc.langgraph4j.utils.CollectionsUtils
Creates a map containing three key-value pairs.
mapOf(K, V, K, V, K, V, K, V, K, V) - Static method in class org.bsc.langgraph4j.utils.CollectionsUtils
Creates a map containing three key-value pairs.
mapper() - Method in class org.bsc.langgraph4j.serializer.std.ObjectStreamStateSerializer
 
MemorySaver - Class in org.bsc.langgraph4j.checkpoint
 
MemorySaver() - Constructor for class org.bsc.langgraph4j.checkpoint.MemorySaver
 
mergeWith(Map<String, Object>, Map<String, Channel<?>>) - Method in class org.bsc.langgraph4j.state.AgentState
MERMAID - Enum constant in enum class org.bsc.langgraph4j.GraphRepresentation.Type
A drawable graph using Mermaid syntax.
MermaidGenerator - Class in org.bsc.langgraph4j.diagram
This class represents a MermaidGenerator that extends DiagramGenerator.
MermaidGenerator() - Constructor for class org.bsc.langgraph4j.diagram.MermaidGenerator
 
messages() - Method in class org.bsc.langgraph4j.prebuilt.MessagesState
Retrieves the list of messages.
MessagesState<T> - Class in org.bsc.langgraph4j.prebuilt
Represents the agent's state as a collection of messages
MessagesState(Map<String, Object>) - Constructor for class org.bsc.langgraph4j.prebuilt.MessagesState
Constructs a new instance of MessagesState with the provided initial data.
MessagesStateGraph<T> - Class in org.bsc.langgraph4j.prebuilt
Represents a state graph with messages for generic type T.
MessagesStateGraph() - Constructor for class org.bsc.langgraph4j.prebuilt.MessagesStateGraph
Default constructor that initializes a new instance of MessagesStateGraph.
MessagesStateGraph(StateSerializer<MessagesState<T>>) - Constructor for class org.bsc.langgraph4j.prebuilt.MessagesStateGraph
Constructs a new instance of MessagesStateGraph.
mimeType() - Method in class org.bsc.langgraph4j.serializer.plain_text.gson.GsonStateSerializer
 
mimeType() - Method in class org.bsc.langgraph4j.serializer.plain_text.jackson.JacksonStateSerializer
 
mimeType() - Method in class org.bsc.langgraph4j.serializer.plain_text.PlainTextStateSerializer
 
mimeType() - Method in interface org.bsc.langgraph4j.serializer.Serializer
 

N

next() - Method in class org.bsc.langgraph4j.CompiledGraph.AsyncNodeGenerator
 
next() - Method in class org.bsc.langgraph4j.state.StateSnapshot
 
nextNode() - Method in class org.bsc.langgraph4j.RunnableConfig
Returns an Optional describing the next node in the sequence, or an empty Optional if there is no such node.
nextNode(String) - Method in class org.bsc.langgraph4j.RunnableConfig.Builder
Sets the next node in the configuration and returns this builder for method chaining.
nextNodeId(String) - Method in class org.bsc.langgraph4j.checkpoint.Checkpoint.Builder
 
node() - Method in class org.bsc.langgraph4j.NodeOutput
 
node_async(NodeAction<S>) - Static method in interface org.bsc.langgraph4j.action.AsyncNodeAction
Creates an asynchronous node action from a synchronous node action.
node_async(NodeActionWithConfig<S>) - Static method in interface org.bsc.langgraph4j.action.AsyncNodeActionWithConfig
Converts a synchronous NodeActionWithConfig to an asynchronous one.
NodeAction<T extends AgentState> - Interface in org.bsc.langgraph4j.action
 
NodeActionWithConfig<S extends AgentState> - Interface in org.bsc.langgraph4j.action
 
nodeId(String) - Method in class org.bsc.langgraph4j.checkpoint.Checkpoint.Builder
 
NodeOutput<State extends AgentState> - Class in org.bsc.langgraph4j
Represents the output of a node in a graph.
NodeOutput(String, State) - Constructor for class org.bsc.langgraph4j.NodeOutput
 
NullableObjectSerializer<T> - Interface in org.bsc.langgraph4j.serializer.std
 

O

objectInputWithMapper(ObjectInput) - Method in class org.bsc.langgraph4j.serializer.std.SerializerMapper
 
ObjectInputWithMapper - Class in org.bsc.langgraph4j.serializer.std
 
ObjectInputWithMapper(ObjectInput, SerializerMapper) - Constructor for class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
objectMapper - Variable in class org.bsc.langgraph4j.serializer.plain_text.jackson.JacksonStateSerializer
 
objectOutputWithMapper(ObjectOutput) - Method in class org.bsc.langgraph4j.serializer.std.SerializerMapper
 
ObjectStreamStateSerializer<State extends AgentState> - Class in org.bsc.langgraph4j.serializer.std
 
ObjectStreamStateSerializer(AgentStateFactory<State>) - Constructor for class org.bsc.langgraph4j.serializer.std.ObjectStreamStateSerializer
 
of(String, State) - Static method in class org.bsc.langgraph4j.NodeOutput
 
of(Supplier<List<T>>) - Static method in class org.bsc.langgraph4j.state.AppenderChannel
Creates an instance of `AppenderChannel` using the provided supplier to get the default list.
of(Supplier<T>) - Static method in interface org.bsc.langgraph4j.state.Channel
Creates a channel with the specified default provider.
of(AsyncNodeAction<S>) - Static method in interface org.bsc.langgraph4j.action.AsyncNodeActionWithConfig
Adapts a simple AsyncNodeAction to an AsyncNodeActionWithConfig.
of(Checkpoint, RunnableConfig, AgentStateFactory<State>) - Static method in class org.bsc.langgraph4j.state.StateSnapshot
 
of(Reducer<T>) - Static method in interface org.bsc.langgraph4j.state.Channel
Creates a channel with the specified Reducer.
of(Reducer<T>, Supplier<T>) - Static method in interface org.bsc.langgraph4j.state.Channel
Creates a new channel instance with the specified reducer and defaultProvider.
of(T) - Static method in record class org.bsc.langgraph4j.state.RemoveByHash
Creates a new RemoveByHash instance with the specified value.
org.bsc.langgraph4j - package org.bsc.langgraph4j
The org.bsc.langgraph4j package provides classes and interfaces for building stateful, multi-agent applications with LLMs.
org.bsc.langgraph4j.action - package org.bsc.langgraph4j.action
Provides interfaces and classes for defining actions that operate on agent states.
org.bsc.langgraph4j.checkpoint - package org.bsc.langgraph4j.checkpoint
 
org.bsc.langgraph4j.diagram - package org.bsc.langgraph4j.diagram
 
org.bsc.langgraph4j.prebuilt - package org.bsc.langgraph4j.prebuilt
 
org.bsc.langgraph4j.serializer - package org.bsc.langgraph4j.serializer
 
org.bsc.langgraph4j.serializer.plain_text - package org.bsc.langgraph4j.serializer.plain_text
 
org.bsc.langgraph4j.serializer.plain_text.gson - package org.bsc.langgraph4j.serializer.plain_text.gson
 
org.bsc.langgraph4j.serializer.plain_text.jackson - package org.bsc.langgraph4j.serializer.plain_text.jackson
 
org.bsc.langgraph4j.serializer.std - package org.bsc.langgraph4j.serializer.std
This package contains implementations of the Serializer interface that utilize Java's built-in serialization mechanism.
org.bsc.langgraph4j.state - package org.bsc.langgraph4j.state
Provides classes and interfaces for managing the state of agents in the langgraph4j framework.
org.bsc.langgraph4j.streaming - package org.bsc.langgraph4j.streaming
 
org.bsc.langgraph4j.utils - package org.bsc.langgraph4j.utils
 

P

PlainTextStateSerializer<State extends AgentState> - Class in org.bsc.langgraph4j.serializer.plain_text
 
PlainTextStateSerializer(AgentStateFactory<State>) - Constructor for class org.bsc.langgraph4j.serializer.plain_text.PlainTextStateSerializer
 
PLANTUML - Enum constant in enum class org.bsc.langgraph4j.GraphRepresentation.Type
A drawable graph using PlantUML syntax.
PlantUMLGenerator - Class in org.bsc.langgraph4j.diagram
 
PlantUMLGenerator() - Constructor for class org.bsc.langgraph4j.diagram.PlantUMLGenerator
 
put(RunnableConfig, Checkpoint) - Method in interface org.bsc.langgraph4j.checkpoint.BaseCheckpointSaver
 
put(RunnableConfig, Checkpoint) - Method in class org.bsc.langgraph4j.checkpoint.FileSystemSaver
 
put(RunnableConfig, Checkpoint) - Method in class org.bsc.langgraph4j.checkpoint.MemorySaver
 

R

read() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
read(byte[]) - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
read(byte[], int, int) - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
read(ObjectInput) - Method in class org.bsc.langgraph4j.serializer.plain_text.gson.GsonStateSerializer
 
read(ObjectInput) - Method in class org.bsc.langgraph4j.serializer.plain_text.jackson.JacksonStateSerializer
 
read(ObjectInput) - Method in interface org.bsc.langgraph4j.serializer.Serializer
 
read(ObjectInput) - Method in class org.bsc.langgraph4j.serializer.std.ObjectStreamStateSerializer
 
read(Reader) - Method in class org.bsc.langgraph4j.serializer.plain_text.PlainTextStateSerializer
 
read(String) - Method in class org.bsc.langgraph4j.serializer.plain_text.PlainTextStateSerializer
 
readBoolean() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readByte() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readChar() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readDouble() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readExternal(ObjectInput) - Method in class org.bsc.langgraph4j.state.AppendableValueRW
Deprecated.
 
readFloat() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readFully(byte[]) - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readFully(byte[], int, int) - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readInt() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readLine() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readLong() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readNullableObject(ObjectInput) - Method in interface org.bsc.langgraph4j.serializer.std.NullableObjectSerializer
 
readNullableUTF(ObjectInput) - Method in interface org.bsc.langgraph4j.serializer.std.NullableObjectSerializer
 
readObject() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readObject(byte[]) - Method in interface org.bsc.langgraph4j.serializer.Serializer
 
readShort() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readUnsignedByte() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readUnsignedShort() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
readUTF() - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
Reducer<T> - Interface in org.bsc.langgraph4j.state
 
register(Class<?>, Serializer<?>) - Method in class org.bsc.langgraph4j.serializer.std.SerializerMapper
 
RemoveByHash<T> - Record Class in org.bsc.langgraph4j.state
Represents a record that implements the AppenderChannel.RemoveIdentifier<T> interface.
RemoveByHash(T) - Constructor for record class org.bsc.langgraph4j.state.RemoveByHash
Creates an instance of a RemoveByHash record class.
RunnableConfig - Class in org.bsc.langgraph4j
A final class representing configuration for a runnable task.
RunnableConfig.Builder - Class in org.bsc.langgraph4j
A builder pattern class for constructing RunnableConfig objects.

S

SCHEMA - Static variable in class org.bsc.langgraph4j.prebuilt.MessagesState
 
Serializer<T> - Interface in org.bsc.langgraph4j.serializer
 
SerializerMapper - Class in org.bsc.langgraph4j.serializer.std
 
SerializerMapper() - Constructor for class org.bsc.langgraph4j.serializer.std.SerializerMapper
 
setConditionalEntryPoint(AsyncEdgeAction<State>, Map<String, String>) - Method in class org.bsc.langgraph4j.StateGraph
Deprecated, for removal: This API element is subject to removal in a future version.
use addConditionalEdge(START, consition, mappings)
setEntryPoint(String) - Method in class org.bsc.langgraph4j.StateGraph
Deprecated, for removal: This API element is subject to removal in a future version.
use addEdge(START, nodeId)
setFinishPoint(String) - Method in class org.bsc.langgraph4j.StateGraph
Deprecated.
use use addEdge(nodeId, END)
setMaxIterations(int) - Method in class org.bsc.langgraph4j.CompiledGraph
Sets the maximum number of iterations for the graph execution.
size() - Method in interface org.bsc.langgraph4j.state.AppendableValue
Deprecated.
Returns the size of the value list.
size() - Method in class org.bsc.langgraph4j.state.AppendableValueRW
Deprecated.
Returns the size of the list of values.
skip(long) - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
skipBytes(int) - Method in class org.bsc.langgraph4j.serializer.std.ObjectInputWithMapper
 
SNAPSHOTS - Enum constant in enum class org.bsc.langgraph4j.CompiledGraph.StreamMode
 
START - Static variable in class org.bsc.langgraph4j.StateGraph
 
state() - Method in class org.bsc.langgraph4j.NodeOutput
 
state(Map<String, Object>) - Method in class org.bsc.langgraph4j.checkpoint.Checkpoint.Builder
 
state(AgentState) - Method in class org.bsc.langgraph4j.checkpoint.Checkpoint.Builder
 
stateFactory() - Method in class org.bsc.langgraph4j.serializer.StateSerializer
 
StateGraph<State extends AgentState> - Class in org.bsc.langgraph4j
Represents a state graph with nodes and edges.
StateGraph(StateSerializer<State>) - Constructor for class org.bsc.langgraph4j.StateGraph
Constructs a new StateGraph with the specified serializer.
StateGraph(Map<String, Channel<?>>, StateSerializer<State>) - Constructor for class org.bsc.langgraph4j.StateGraph
 
StateGraph(Map<String, Channel<?>>, AgentStateFactory<State>) - Constructor for class org.bsc.langgraph4j.StateGraph
 
StateGraph(AgentStateFactory<State>) - Constructor for class org.bsc.langgraph4j.StateGraph
Constructs a new StateGraph with the specified state factory.
stateOf(Map<String, Object>) - Method in class org.bsc.langgraph4j.serializer.StateSerializer
 
stateOf(RunnableConfig) - Method in class org.bsc.langgraph4j.CompiledGraph
Get the StateSnapshot of the given RunnableConfig.
StateSerializer<State extends AgentState> - Class in org.bsc.langgraph4j.serializer
 
StateSerializer(AgentStateFactory<State>) - Constructor for class org.bsc.langgraph4j.serializer.StateSerializer
 
StateSnapshot<State extends AgentState> - Class in org.bsc.langgraph4j.state
 
stream(Map<String, Object>) - Method in class org.bsc.langgraph4j.CompiledGraph
Creates an AsyncGenerator stream of NodeOutput based on the provided inputs.
stream(Map<String, Object>, RunnableConfig) - Method in class org.bsc.langgraph4j.CompiledGraph
Creates an AsyncGenerator stream of NodeOutput based on the provided inputs.
StreamingOutput<State extends AgentState> - Class in org.bsc.langgraph4j.streaming
 
StreamingOutput(String, String, State) - Constructor for class org.bsc.langgraph4j.streaming.StreamingOutput
 
streamMode() - Method in class org.bsc.langgraph4j.RunnableConfig
Returns the stream mode of the compiled graph.
streamMode(CompiledGraph.StreamMode) - Method in class org.bsc.langgraph4j.RunnableConfig.Builder
Sets the stream mode of the configuration.
streamSnapshots(Map<String, Object>, RunnableConfig) - Method in class org.bsc.langgraph4j.CompiledGraph
Creates an AsyncGenerator stream of NodeOutput based on the provided inputs.
SUBGRAPH_PREFIX - Static variable in class org.bsc.langgraph4j.diagram.MermaidGenerator
 

T

threadId() - Method in class org.bsc.langgraph4j.RunnableConfig
Returns the thread ID as an Optional.
threadId(String) - Method in class org.bsc.langgraph4j.RunnableConfig.Builder
Sets the ID of the thread.
titleToSnakeCase() - Method in class org.bsc.langgraph4j.DiagramGenerator.Context
Converts a given title string to snake_case format by replacing all non-alphanumeric characters with underscores.
toString() - Method in class org.bsc.langgraph4j.DiagramGenerator.Context
Returns a string representation of this object by returning the string built in DiagramGenerator.Context.sb.
toString() - Method in class org.bsc.langgraph4j.NodeOutput
 
toString() - Method in class org.bsc.langgraph4j.serializer.std.SerializerMapper
 
toString() - Method in class org.bsc.langgraph4j.state.AgentState
Returns a string representation of the agent state.
toString() - Method in class org.bsc.langgraph4j.state.AppendableValueRW
Deprecated.
Returns a string representation of the list of values.
toString() - Method in record class org.bsc.langgraph4j.state.RemoveByHash
Returns a string representation of this record class.
toString() - Method in class org.bsc.langgraph4j.state.StateSnapshot
 
toString() - Method in class org.bsc.langgraph4j.streaming.StreamingOutput
 
Try(TryConsumer<T, Ex>) - Static method in interface org.bsc.langgraph4j.utils.TryConsumer
 
tryAccept(T) - Method in interface org.bsc.langgraph4j.utils.TryConsumer
 
TryConsumer<T,Ex extends Throwable> - Interface in org.bsc.langgraph4j.utils
 

U

unregister(Class<? extends Serializer<?>>) - Method in class org.bsc.langgraph4j.serializer.std.SerializerMapper
 
update(String, Object, Object) - Method in class org.bsc.langgraph4j.state.AppenderChannel
Updates the value for a given key in the channel.
update(String, Object, Object) - Method in interface org.bsc.langgraph4j.state.Channel
Update the state property with the given key and returns the new value.
updateState(Map<String, Object>, Map<String, Object>, Map<String, Channel<?>>) - Static method in class org.bsc.langgraph4j.state.AgentState
Updates a state with the provided partial state.
updateState(Map<String, Object>, Map<String, Channel<?>>) - Method in class org.bsc.langgraph4j.checkpoint.Checkpoint
 
updateState(RunnableConfig, Map<String, Object>) - Method in class org.bsc.langgraph4j.CompiledGraph
Update the state of the graph with the given values.
updateState(RunnableConfig, Map<String, Object>, String) - Method in class org.bsc.langgraph4j.CompiledGraph
Update the state of the graph with the given values.
updateState(AgentState, Map<String, Object>, Map<String, Channel<?>>) - Static method in class org.bsc.langgraph4j.state.AgentState
Updates a state with the provided partial state.

V

value() - Method in record class org.bsc.langgraph4j.state.RemoveByHash
Returns the value of the value record component.
value(String) - Method in class org.bsc.langgraph4j.state.AgentState
Retrieves the value associated with the given key, if present.
value(String, Supplier<T>) - Method in class org.bsc.langgraph4j.state.AgentState
Deprecated.
value(String, T) - Method in class org.bsc.langgraph4j.state.AgentState
Deprecated.
This method is deprecated and may be removed in future versions.
valueOf(String) - Static method in enum class org.bsc.langgraph4j.CompiledGraph.StreamMode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.bsc.langgraph4j.GraphRepresentation.Type
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.bsc.langgraph4j.CompiledGraph.StreamMode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.bsc.langgraph4j.GraphRepresentation.Type
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Method in interface org.bsc.langgraph4j.state.AppendableValue
Deprecated.
Returns the list of values.
values() - Method in class org.bsc.langgraph4j.state.AppendableValueRW
Deprecated.
Returns an unmodifiable list of values.
VALUES - Enum constant in enum class org.bsc.langgraph4j.CompiledGraph.StreamMode
 

W

withCheckPointId(String) - Method in class org.bsc.langgraph4j.RunnableConfig
Updates the checkpoint ID of the configuration.
withStreamMode(CompiledGraph.StreamMode) - Method in class org.bsc.langgraph4j.RunnableConfig
Create a new RunnableConfig with the same attributes as this one but with a different CompiledGraph.StreamMode.
write(State, ObjectOutput) - Method in class org.bsc.langgraph4j.serializer.plain_text.gson.GsonStateSerializer
 
write(State, ObjectOutput) - Method in class org.bsc.langgraph4j.serializer.plain_text.jackson.JacksonStateSerializer
 
write(State, ObjectOutput) - Method in class org.bsc.langgraph4j.serializer.std.ObjectStreamStateSerializer
 
write(T, ObjectOutput) - Method in interface org.bsc.langgraph4j.serializer.Serializer
 
writeExternal(ObjectOutput) - Method in class org.bsc.langgraph4j.state.AppendableValueRW
Deprecated.
 
writeNullableObject(Object, ObjectOutput) - Method in interface org.bsc.langgraph4j.serializer.std.NullableObjectSerializer
 
writeNullableUTF(String, ObjectOutput) - Method in interface org.bsc.langgraph4j.serializer.std.NullableObjectSerializer
 
writeObject(T) - Method in interface org.bsc.langgraph4j.serializer.Serializer
 
A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form