ai-agents 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2d0dbff300d9f3bd08da74d39e1fbf2eecbfa0b293558af01b5ecfcc765d58c
4
- data.tar.gz: 84a94feb4a5faea46ec658159f1266d315ba8175ad8b4c62915745c6e430c741
3
+ metadata.gz: cc7df032400d2c2965b0f3ec7c43baf614805ab4cca2b8d2db5b58db6c2cd6c9
4
+ data.tar.gz: 37150c6bea03d3b339adef7c4e1dc9eb0827e3eb1f24074b6311784f069a7b91
5
5
  SHA512:
6
- metadata.gz: 7bb4ab502f7c3362a3bc6f3549c30166f5e8e19d5f9aee7c3bf1fe17af334ae765122ecbff8c6b045aa28d5fac6e639dd5f56002ab7b24626ed0b2aae36eba48
7
- data.tar.gz: 185d68208135a2f24b5ad8f5bbc075cdf06bcd54bad1b99f7910050224439bb8aacdec7a5c64f9768f7ec9cebdea9efa9e33734db4a650dd97bb16de901a00b5
6
+ metadata.gz: ede27e9751fb4790a555c29aa675e0cae4612e0e566ad7d164bf8929045b41696881855b77bc18454feb52ae8ce0e148bcec6f12d4ae86a427a1648b1e2e69e7
7
+ data.tar.gz: bfa2e55a7082729492066f75d535df3235da2a4478d47dc042983a3772a902c4b3ba8f7f761717057605f1bf40aded3651414ba1ec48b3bb766a266ab0c74b18
@@ -1,5 +1,5 @@
1
1
  ---
2
- allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
2
+ allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*), Bash(bundle install)
3
3
  description: Bump version, update changelog and commit changes
4
4
  ---
5
5
 
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.1] - 2025-07-08
9
+
10
+ ### Fixed
11
+ - Fixed string role handling in conversation history restoration
12
+ - `msg[:role]` is now converted to symbol before checking inclusion in restore_conversation_history
13
+ - Prevents string roles like "user" from being skipped during history restoration
14
+
8
15
  ## [0.2.0] - 2025-07-08
9
16
 
10
17
  ### Added
data/lib/agents/runner.rb CHANGED
@@ -199,7 +199,7 @@ module Agents
199
199
 
200
200
  history.each do |msg|
201
201
  # Only restore user and assistant messages with content
202
- next unless %i[user assistant].include?(msg[:role])
202
+ next unless %i[user assistant].include?(msg[:role].to_sym)
203
203
  next unless msg[:content] && !msg[:content].strip.empty?
204
204
 
205
205
  chat.add_message(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Agents
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ai-agents
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shivam Mishra