ask-agent 0.10.1 → 0.10.2

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: d5e756cf8cac1846725f37f01183d28716b4a92c312a9bc7fa75615730ae0bcc
4
- data.tar.gz: 153d95d3f55329725343f0dc0355170991dc83fa13fe45d67526ab25784c040d
3
+ metadata.gz: 29202a6f7d78efccb7c3405f2ae55c354f67a1192e840d8e7d7b14b40828e2fd
4
+ data.tar.gz: fb1f38e276eb6dd8f705bc0cbc6af1a7369eabfff2861503d81b31de3a60509d
5
5
  SHA512:
6
- metadata.gz: 1ab7d1b8123ebd090f08afe988ae7cb300c6763c93e9f4eef6235aa78c223fa07f54afae67fa69cbf19114c8a7ceb72da2ed1cb3b069adb0bfb871b852dfbdae
7
- data.tar.gz: f42792ffb098e24ac9fd9b25495c96d53754518276ec75c339e22c7dc1565e95f5f07e6a3629d9e7554b4aa53e21e60f7f699931410aa7646af42f8be683440a
6
+ metadata.gz: caeb846f394c44918e03c380049633fbd2e50c6fce2863c350aa40db571f2f2b7e013760c71a10cd49bb8ddce35387dfc6b44052049ca6da24212219bdaf524f
7
+ data.tar.gz: cd219aea94cc122cfaff126a68ca1d59390349e373511adc87dbc78eb33aacdc0bc2f3b64d022cb9a3bafc0d843308fb4a3d94f061f24cb0b4191cf690852c15
@@ -55,6 +55,24 @@ module Ask
55
55
  end
56
56
  end
57
57
 
58
+ # Set or get the provider override.
59
+ def provider(value = :__no_value__)
60
+ if value == :__no_value__
61
+ _config[:provider]
62
+ else
63
+ _config[:provider] = value
64
+ end
65
+ end
66
+
67
+ # Set or get max turns for the session.
68
+ def max_turns(value = :__no_value__)
69
+ if value == :__no_value__
70
+ _config[:max_turns]
71
+ else
72
+ _config[:max_turns] = value
73
+ end
74
+ end
75
+
58
76
  # Set tool symbols or classes.
59
77
  def tools(*values)
60
78
  if values.any?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ask
4
4
  module Agent
5
- VERSION = "0.10.1"
5
+ VERSION = "0.10.2"
6
6
  end
7
7
  end
data/lib/ask/agent.rb CHANGED
@@ -145,6 +145,10 @@ module Ask
145
145
  config = klass._config
146
146
  session_opts = { model: config[:model] || Ask::Agent.configuration.default_model }
147
147
 
148
+ # Pass optional config
149
+ session_opts[:provider] = config[:provider] if config[:provider]
150
+ session_opts[:max_turns] = config[:max_turns] if config[:max_turns]
151
+
148
152
  # Pass agent directory for per-agent skills discovery
149
153
  session_opts[:agent_dir] = dir
150
154
 
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.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto