ask-agent 0.10.2 → 0.11.0

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: 29202a6f7d78efccb7c3405f2ae55c354f67a1192e840d8e7d7b14b40828e2fd
4
- data.tar.gz: fb1f38e276eb6dd8f705bc0cbc6af1a7369eabfff2861503d81b31de3a60509d
3
+ metadata.gz: 14e351edbbd119bd5ae5bf8701fd38dd1370b496a415d6be9bc386cb3c5bb04b
4
+ data.tar.gz: 4a156a06a909b8725685ec7cb5bff121e46b2ebcb2976b6411cb4c29c75ab364
5
5
  SHA512:
6
- metadata.gz: caeb846f394c44918e03c380049633fbd2e50c6fce2863c350aa40db571f2f2b7e013760c71a10cd49bb8ddce35387dfc6b44052049ca6da24212219bdaf524f
7
- data.tar.gz: cd219aea94cc122cfaff126a68ca1d59390349e373511adc87dbc78eb33aacdc0bc2f3b64d022cb9a3bafc0d843308fb4a3d94f061f24cb0b4191cf690852c15
6
+ metadata.gz: 852a51b092bbe1d4e3a2b57c87001474261d413428ab83bb4a71fae4858a229e0c9a9d337c24a89177773c1b2ee82a8aac8069455f2f1191350d0d66c19a477f
7
+ data.tar.gz: ca6761470ac7c95191bf7e2bd49c47bf10a71fd0ba6796468ddc113692f5f685f6a73d57f9fe46cf7fc6295f6b3c7aa11806212b62d8c18f60562888bcd7d4c0
@@ -73,6 +73,31 @@ module Ask
73
73
  end
74
74
  end
75
75
 
76
+ # Set or get parallel tool execution flag.
77
+ def parallel_tools(value = :__no_value__)
78
+ if value == :__no_value__
79
+ _config.key?(:parallel_tools) ? _config[:parallel_tools] : true
80
+ else
81
+ _config[:parallel_tools] = value
82
+ end
83
+ end
84
+
85
+ # Set an arbitrary Session option. Accepts any key that
86
+ # Ask::Agent::Session.new understands.
87
+ #
88
+ # option :temperature, 0.7
89
+ # option :reflector, true
90
+ # option :telemetry, false
91
+ def option(key, value = :__no_value__)
92
+ if value == :__no_value__
93
+ _config[:options] ||= {}
94
+ _config[:options][key]
95
+ else
96
+ _config[:options] ||= {}
97
+ _config[:options][key] = value
98
+ end
99
+ end
100
+
76
101
  # Set tool symbols or classes.
77
102
  def tools(*values)
78
103
  if values.any?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ask
4
4
  module Agent
5
- VERSION = "0.10.2"
5
+ VERSION = "0.11.0"
6
6
  end
7
7
  end
data/lib/ask/agent.rb CHANGED
@@ -148,6 +148,12 @@ module Ask
148
148
  # Pass optional config
149
149
  session_opts[:provider] = config[:provider] if config[:provider]
150
150
  session_opts[:max_turns] = config[:max_turns] if config[:max_turns]
151
+ session_opts[:parallel_tools] = config[:parallel_tools] if config.key?(:parallel_tools)
152
+
153
+ # Pass arbitrary session options
154
+ if config[:options]
155
+ session_opts.merge!(config[:options])
156
+ end
151
157
 
152
158
  # Pass agent directory for per-agent skills discovery
153
159
  session_opts[:agent_dir] = dir
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.2
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto