From e37621cf6bdbef0782c420be75bd8790d516e930 Mon Sep 17 00:00:00 2001 From: bsorrentino Date: Thu, 29 Aug 2024 21:54:32 +0200 Subject: [PATCH] refactor: add @@FunctionalInterface annotation --- .../main/java/org/bsc/langgraph4j/action/AsyncEdgeAction.java | 1 + .../src/main/java/org/bsc/langgraph4j/action/NodeAction.java | 1 + 2 files changed, 2 insertions(+) diff --git a/core-jdk8/src/main/java/org/bsc/langgraph4j/action/AsyncEdgeAction.java b/core-jdk8/src/main/java/org/bsc/langgraph4j/action/AsyncEdgeAction.java index 1cda1aa..15071f7 100644 --- a/core-jdk8/src/main/java/org/bsc/langgraph4j/action/AsyncEdgeAction.java +++ b/core-jdk8/src/main/java/org/bsc/langgraph4j/action/AsyncEdgeAction.java @@ -9,6 +9,7 @@ * * @param the type of the agent state */ +@FunctionalInterface public interface AsyncEdgeAction extends Function> { /** diff --git a/core-jdk8/src/main/java/org/bsc/langgraph4j/action/NodeAction.java b/core-jdk8/src/main/java/org/bsc/langgraph4j/action/NodeAction.java index e71cd40..7957804 100644 --- a/core-jdk8/src/main/java/org/bsc/langgraph4j/action/NodeAction.java +++ b/core-jdk8/src/main/java/org/bsc/langgraph4j/action/NodeAction.java @@ -4,6 +4,7 @@ import java.util.Map; +@FunctionalInterface public interface NodeAction { Map apply(T t) throws Exception;