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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63f9d02616c10429f0d409e08036fbf25e2557ba02d48785271ffd7b90aec464
4
- data.tar.gz: 46eb23dd11cc7e81ec2c58ee13beca5d36cbfc8c221ec1ae1b70b59cf3e56f36
3
+ metadata.gz: d46ecbbc5bd53e71019b021fb9003dacc64ca73b4928664f2a4da559b3f1d008
4
+ data.tar.gz: 9906abf9a4db852adf007679b85673910eac36028b61cd7b7ef34da189e9809f
5
5
  SHA512:
6
- metadata.gz: d53d4a72482146cf692304f82a0c273ebc06925dc66042d461e600e77fa99f79fda88f67282b5497a4625275d7311b1d10ea255814085883e15a323a7c4d56e9
7
- data.tar.gz: b2f63c03a162101345589732a192267a55464c7ebed524274a175b66ee872501ec36386d4fd7995005d4726fa0181bb82a9d48b32b09ed722e0662e39fd6958b
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DSPy
4
- VERSION = "0.18.0"
4
+ VERSION = "0.18.1"
5
5
  end
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.0
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-08 00:00:00.000000000 Z
10
+ date: 2025-08-10 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: dry-configurable