Skip to content

Commit

Permalink
Merge branch 'release/1.0-20240828'
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Aug 28, 2024
2 parents ec6a8dc + 0ed422a commit 820889a
Show file tree
Hide file tree
Showing 27 changed files with 886 additions and 385 deletions.
2 changes: 1 addition & 1 deletion adaptive-rag/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-parent</artifactId>
<version>1.0-beta2</version>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>langgraph4j-adaptive-rag</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion agent-executor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-parent</artifactId>
<version>1.0-beta2</version>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>langgraph4j-agent-executor</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import dev.langchain4j.model.openai.OpenAiChatModel;
import lombok.var;
import org.bsc.langgraph4j.GraphRepresentation;
import org.bsc.langgraph4j.InvokeConfig;
import org.bsc.langgraph4j.RunnableConfig;
import org.bsc.langgraph4j.NodeOutput;
import org.bsc.langgraph4j.StateGraph;
import org.bsc.langgraph4j.checkpoint.BaseCheckpointSaver;
Expand Down Expand Up @@ -45,13 +45,11 @@ private AgentExecutor.GraphBuilder newGraphBuilder() throws Exception {
.maxTokens(2000)
.build();


var agentExecutor = new AgentExecutor();

return agentExecutor.graphBuilder()
.chatLanguageModel(chatLanguageModel)
.objectsWithTools(listOf(new TestTool()));

}

private List<AgentExecutor.State> executeAgent( String prompt ) throws Exception {
Expand All @@ -64,7 +62,7 @@ private List<AgentExecutor.State> executeAgent( String prompt ) throws Exceptio
}

private List<AgentExecutor.State> executeAgent(String prompt, String threadId, BaseCheckpointSaver saver) throws Exception {
var config = InvokeConfig.builder().checkpointThreadId(threadId).build();
var config = RunnableConfig.builder().threadId(threadId).build();

var iterator = newGraphBuilder()
.checkpointSaver( saver )
Expand Down
File renamed without changes.
10 changes: 10 additions & 0 deletions changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# prepare the CHANGELOG.md with the current version
git flow hotfix start changeme

# generate CHANGELOG.md
git-changelog-command-line -of CHANGELOG.md

git commit -m'docs: update changeme' -a

# finish the hotfix without create tag
git flow hotfix finish changeme -n
2 changes: 1 addition & 1 deletion core-jdk8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-parent</artifactId>
<version>1.0-beta2</version>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>langgraph4j-core-jdk8</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.bsc.langgraph4j;

import lombok.Getter;
import org.bsc.langgraph4j.checkpoint.BaseCheckpointSaver;

import java.util.Optional;
Expand All @@ -8,12 +9,12 @@
public class CompileConfig {

private BaseCheckpointSaver checkpointSaver;
@Getter
private String[] interruptBefore = {};
@Getter
private String[] interruptAfter = {};

public Optional<BaseCheckpointSaver> getCheckpointSaver() { return Optional.ofNullable(checkpointSaver); }
public String[] getInterruptBefore() { return interruptBefore; }
public String[] getInterruptAfter() { return interruptAfter; }
public Optional<BaseCheckpointSaver> checkpointSaver() { return Optional.ofNullable(checkpointSaver); }

public static Builder builder() {
return new Builder();
Expand Down
Loading

0 comments on commit 820889a

Please sign in to comment.