ask-agent 0.1.4 → 0.1.5

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: f9b59871c0216de559acd011a9553c650ca4f3714150c7e71811b375a92f2a48
4
- data.tar.gz: edb6f7137010f1c448da22ca99a7cf2c90dda29f70d210db4c2e18d5f4079568
3
+ metadata.gz: 38ab35ec10f5a573c4542412b9594d50680dd84f4610059a1dacb27593811de5
4
+ data.tar.gz: 189473545564a1ebed37ef26a9a32f86ade2a4dda835ab19ecff3544cb33b83a
5
5
  SHA512:
6
- metadata.gz: c3c7ddc41ed53e2978b9860814ed802b9bae305f81fe442dc3b123b8f34786f4bd16a1f9fa90ff6069cae4570aba8033f135a4187e39806745b16f33fef976b4
7
- data.tar.gz: dafe52d28098ac72a45557547818bcea55c609d1db0856d6c67ea7fd330a837ed80ded9145cc6d0d3cc3f45818f268db5c4faca7cb38b9220a63ccc3a84457b9
6
+ metadata.gz: c6bca94aaa0bd0eef2b01334c989e52de4e4aa03e550bc507d4be3e77e073f4b5525cc1528b54cff5254fceffa079033497aff300cac329a62d1d8c0404b1091
7
+ data.tar.gz: 6c68fdb7254f08596eeabb85e24871b1161406cd08804d20fa1af5c5b7a2e58fe72b8f8404cb1a65c05dd98d2ebeba252d5fc727d4417f8a72ed0ff26d1ce564
@@ -66,13 +66,13 @@ module Ask
66
66
  # Accumulator for tool calls during streaming (keyed by index)
67
67
  calls_acc = {}
68
68
 
69
- result = provider.chat(@extra_params || {},
70
- @messages.map(&:to_h),
69
+ result = provider.chat( @messages.map(&:to_h),
71
70
  model: @model_id,
72
71
  tools: tool_defs,
73
72
  temperature: @temperature,
74
73
  stream: stream,
75
- schema: @schema&.respond_to?(:to_json_schema) ? @schema.to_json_schema : @schema
74
+ schema: @schema&.respond_to?(:to_json_schema) ? @schema.to_json_schema : @schema,
75
+ **(@extra_params || {})
76
76
  ) do |raw_chunk|
77
77
  next unless block_given?
78
78
 
@@ -143,7 +143,10 @@ module Ask
143
143
  self
144
144
  end
145
145
 
146
- def with_schema(schema)
146
+ # Set additional parameters forwarded to the provider call.
147
+ # @param params [Hash] extra keyword arguments for the provider
148
+ # @return [self]
149
+ def with_schema(schema)
147
150
  @schema = schema.respond_to?(:to_json_schema) ? schema.to_json_schema : schema
148
151
  self
149
152
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ask
4
4
  module Agent
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ask-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto