ruby-pi 0.1.2 → 0.1.3
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/ruby_pi/agent/core.rb +3 -0
- data/lib/ruby_pi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e996e18be62d604fb9950b3f1ffa3951be1cf89f9bcc56bdedee790a7fc6c042
|
|
4
|
+
data.tar.gz: 48ecbe8c92e41bfeeaa723d05230ad8d8d58eaf13da2019f87bc19614342de98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 923f10b140fdf2fa78948d515c97ee2f5ed48ba29d7bb7c20cd3cbb6b2b253690972a40a1e2edf3a1ec5aa460c09aabf03ce074a2713a6b841be9000101941c0
|
|
7
|
+
data.tar.gz: 261ab3f511a1f8abef34f438a842be7648c8a327df72540523c7c0538b127743cb03ec7a80992856d26addeef7c1c654b5e649fe0aec818c544cdc1acc6085d4
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ 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.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.3] - 2026-04-29
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `RubyPi::Agent::Core#initialize` now accepts a `messages:` keyword argument so callers can seed the agent with prior conversation history when starting a run
|
|
13
|
+
|
|
8
14
|
## [0.1.2] - 2026-04-29
|
|
9
15
|
|
|
10
16
|
### Fixed
|
data/lib/ruby_pi/agent/core.rb
CHANGED
|
@@ -50,6 +50,7 @@ module RubyPi
|
|
|
50
50
|
# @param system_prompt [String] the system-level instruction prompt
|
|
51
51
|
# @param model [RubyPi::LLM::BaseProvider] the LLM provider instance
|
|
52
52
|
# @param tools [RubyPi::Tools::Registry, nil] tool registry
|
|
53
|
+
# @param messages [Array<Hash>] initial conversation history
|
|
53
54
|
# @param max_iterations [Integer] max think-act-observe cycles (default: 10)
|
|
54
55
|
# @param transform_context [Proc, nil] context transform hook
|
|
55
56
|
# @param before_tool_call [Proc, nil] pre-tool-execution hook
|
|
@@ -60,6 +61,7 @@ module RubyPi
|
|
|
60
61
|
system_prompt:,
|
|
61
62
|
model:,
|
|
62
63
|
tools: nil,
|
|
64
|
+
messages: [],
|
|
63
65
|
max_iterations: 10,
|
|
64
66
|
transform_context: nil,
|
|
65
67
|
before_tool_call: nil,
|
|
@@ -71,6 +73,7 @@ module RubyPi
|
|
|
71
73
|
system_prompt: system_prompt,
|
|
72
74
|
model: model,
|
|
73
75
|
tools: tools,
|
|
76
|
+
messages: messages,
|
|
74
77
|
max_iterations: max_iterations,
|
|
75
78
|
transform_context: transform_context,
|
|
76
79
|
before_tool_call: before_tool_call,
|
data/lib/ruby_pi/version.rb
CHANGED