dspy 0.18.0 → 0.18.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 +4 -4
- data/lib/dspy/chain_of_thought.rb +11 -1
- data/lib/dspy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d46ecbbc5bd53e71019b021fb9003dacc64ca73b4928664f2a4da559b3f1d008
|
4
|
+
data.tar.gz: 9906abf9a4db852adf007679b85673910eac36028b61cd7b7ef34da189e9809f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66d209c295b82a67f7fe0768fd326500ec1be2e79a6947e9322a78c8fee27db7bec6ba253f12efd76b6db1abc3d7587ee3247109b766f92539a0a0ca8045fc33
|
7
|
+
data.tar.gz: 56b5fe4bcb77e5a322bfc7b87703c82c95da838940a6727d64afd0f3f4b0e18618dbe3faa48b16c3b239208c8421168dbca874c89bceb090270b7262aa0c9f20
|
@@ -105,6 +105,8 @@ module DSPy
|
|
105
105
|
# Creates signature class with enhanced description and reasoning field
|
106
106
|
sig { params(signature_class: T.class_of(DSPy::Signature), enhanced_output_struct: T.class_of(T::Struct)).returns(T.class_of(DSPy::Signature)) }
|
107
107
|
def create_signature_class(signature_class, enhanced_output_struct)
|
108
|
+
original_name = signature_class.name
|
109
|
+
|
108
110
|
Class.new(DSPy::Signature) do
|
109
111
|
description "#{signature_class.description} Think step by step."
|
110
112
|
|
@@ -125,8 +127,16 @@ module DSPy
|
|
125
127
|
# Add reasoning field descriptor (ChainOfThought always provides this)
|
126
128
|
@output_field_descriptors[:reasoning] = FieldDescriptor.new(String, "Step by step reasoning process")
|
127
129
|
|
130
|
+
# Store the original signature name for tracking/logging
|
131
|
+
@original_signature_name = original_name
|
132
|
+
|
128
133
|
class << self
|
129
|
-
attr_reader :input_struct_class, :output_struct_class
|
134
|
+
attr_reader :input_struct_class, :output_struct_class, :original_signature_name
|
135
|
+
|
136
|
+
# Override name to return the original signature name for tracking
|
137
|
+
def name
|
138
|
+
@original_signature_name || super
|
139
|
+
end
|
130
140
|
end
|
131
141
|
end
|
132
142
|
end
|
data/lib/dspy/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dspy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vicente Reig Rincón de Arellano
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-08-
|
10
|
+
date: 2025-08-10 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: dry-configurable
|