Skip to content

1.2.2

Compare
Choose a tag to compare
@bsorrentino bsorrentino released this 10 Jan 21:39
· 299 commits to main since this release

v1.2.2 (2025-01-10)

Bug Fixes

  • core conditionally use input based on checkpointSaver presence (3291e6485e199f1)
    • refactored async generator handling to conditionally use `state.data()` or an empty map (`Map.of()`) based on the presence of `checkpointSaver`
      work on #60

Documentation

Refactor

  • CompiledGraph.java update node action initialization (a6467614f519946)

    Refactored the way node actions are initialized to use an action factory from the `StateNode` and apply it with the compile configuration. Ensured that each node has a non-null action factory before proceeding.
    BREAKING CHANGE: The previous approach of directly associating nodes with their actions without factories is deprecated.
    work on #60

  • StateGraph update addSubgraph method behavior using actionFactory (fffce294a657cf9)

    • Deprecate the `addSubgraph(CompiledGraph)
    • Add `addSubgraph(StateGraph)`
      work on #60
  • DiagramGenerator.java Refactored subgraph node action handling to use factory method (ac0e989ad7fa674)

    work on #60

  • Node.java refine class structure and add factory method (56474015bdacf5f)

    • Update class to be a record for improved immutability and simplicity.
    • Replace constructor overloads with a single constructor for `id` only, using a lambda expression for optional action factory.
    • Remove deprecated fields and methods (`action` field, redundant constructors).
      work on #60
  • update SubgraphNodeAction constructor and method parameters (e5254216017a072)

    Refactored `SubgraphNodeAction` to accept `StateGraph<State>` and `CompileConfig` instead of just `CompiledGraph<State>`. Updated the method parameter for the stream call to use a default empty map instead of state data.
    work on #60

  • StateGraphTest.java add debugging output to workflow stream (1582432e6b5040f)

  • Channel.java add type casting suppression in update method (6e3ff39cae4d930)

  • CompiledGraph.java optimize invoke method (b55be86be761949)

    Refactored the `invoke` method in `CompiledGraph.java` to streamline the reduction process. This change reduces the overhead by eliminating unnecessary intermediate collections and stream operations.

ALM