Skip to content

Commit

Permalink
docs(site): update documentation
Browse files Browse the repository at this point in the history
- persistence howto
  • Loading branch information
bsorrentino committed Sep 3, 2024
1 parent b89dbcf commit 254f64f
Show file tree
Hide file tree
Showing 4 changed files with 442 additions and 15 deletions.
10 changes: 5 additions & 5 deletions core-jdk8/src/site/markdown/concepts/low_level.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ To build your graph, you first define the [state](#state), you then add [nodes](
Compiling is a pretty simple step. It provides a few basic checks on the structure of your graph (no orphaned nodes, etc). It is also where you can specify runtime args like [checkpointers](#checkpointer) and [breakpoints](#breakpoints). You compile your graph by just calling the `.compile` method:

```java
// compile your graph
var graph = graphBuilder.compile(...);
```

Expand All @@ -58,7 +59,6 @@ If no [`Channel`] is specified for an item then it is assumed that all updates t
**Example A:**

```java

static class MessagesState extends AgentState {

static Map<String, Channel<?>> SCHEMA = mapOf(
Expand All @@ -77,7 +77,6 @@ You can also specify a custom reducer for a particular state property
**Example B:**

```java

static class MyState extends AgentState {

static Map<String, Channel<?>> SCHEMA = mapOf(
Expand Down Expand Up @@ -168,7 +167,8 @@ Edges define how the logic is routed and how the graph decides to stop. This is

If you **always** want to go from node A to node B, you can use the [addEdge](/langgraphjs/reference/classes/langgraph.StateGraph.html#addEdge) method directly.

```typescript
```java
// add a normal edge
graph.addEdge("nodeA", "nodeB");
```

Expand Down Expand Up @@ -234,7 +234,7 @@ First, checkpointers facilitate [human-in-the-loop workflows](agentic_concepts.m
Second, it allows for ["memory"](agentic_concepts.md#memory) between interactions. You can use checkpointers to create threads and save the state of a thread after a graph executes. In the case of repeated human interactions (like conversations) any follow up messages can be sent to that checkpoint, which will retain its memory of previous ones.
See [this guide](../how-tos/persistence.html) for how to add a checkpointer to your graph.
See [this guide](../../how-tos/persistence.html) for how to add a checkpointer to your graph.
## Threads
Expand All @@ -252,7 +252,7 @@ RunnableConfig config = RunnableConfig.builder()
graph.invoke(inputs, config);
```
See [this guide](../how-tos/persistence.html) for how to use threads.
See [this guide](../../how-tos/persistence.html) for how to use threads.
## Checkpointer state
Expand Down
Loading

0 comments on commit 254f64f

Please sign in to comment.