From 1643518b50705775efff74583334097154e8b5e4 Mon Sep 17 00:00:00 2001 From: AI Christianson Date: Fri, 7 Mar 2025 18:57:19 -0500 Subject: [PATCH] version bump --- CHANGELOG.md | 10 ++++++++++ ra_aid/__version__.py | 2 +- tests/ra_aid/test_agent_utils.py | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0aeaf13..96f46ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.16.1] 2025-03-07 + +### Changed +- Replaced thread-local storage with contextvars in agent_context.py for better context isolation +- Improved React agent execution with LangGraph's interrupt mechanism +- Enhanced _run_agent_stream function to properly handle agent state and continuation + +### Fixed +- Fixed tests to work with the new implementation + ## [0.16.0] 2025-03-07 ### Added diff --git a/ra_aid/__version__.py b/ra_aid/__version__.py index 7203c47..dbc8259 100644 --- a/ra_aid/__version__.py +++ b/ra_aid/__version__.py @@ -1,3 +1,3 @@ """Version information.""" -__version__ = "0.16.0" +__version__ = "0.16.1" diff --git a/tests/ra_aid/test_agent_utils.py b/tests/ra_aid/test_agent_utils.py index de91244..a0ad065 100644 --- a/tests/ra_aid/test_agent_utils.py +++ b/tests/ra_aid/test_agent_utils.py @@ -151,7 +151,8 @@ def test_create_agent_anthropic(mock_model, mock_config_repository): mock_react.assert_called_once_with( mock_model, [], - interrupt_after=['tools'], + interrupt_before=['agent', 'tools'], + interrupt_after=['agent', 'tools'], version="v2", state_modifier=mock_react.call_args[1]["state_modifier"], )