ad-agent_architecture 0.0.19 → 0.0.20

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: e409334669b37c3f86c7982e40f72005d8b57314f360b5c4a669a8217c2160ba
4
- data.tar.gz: 54eacf23fc06efeaab6c25b5cc996103f13657a6b97f1d6baee930f1e1e7046c
3
+ metadata.gz: 4f3aab45dfe70f99314502623753494d46933fd6585fcb56b2393fc761402195
4
+ data.tar.gz: 6e0b3ef2f502728f2289bf3dbfbdad01efa97f3cb879ba8b95fb99261584e805
5
5
  SHA512:
6
- metadata.gz: 1264e2c4392059e71d6d08c8ef9c727aca2dabc7ff5e33c0ece017cdc8503dc414350dc6a2117aa607149e5e22d44f46bf9848c51d38193eaba5e72fc3a4c3c8
7
- data.tar.gz: 01a8d4d96307b2dd415297c626087291742c563d81b0d0cddf819d6d0e55378cdc2867543191bf23a14c4ce7a3840300d4b762f6144ddc566efe585b83d5a8b2
6
+ metadata.gz: 9928c460be4460fc866984db2f3db88ecb9516aa37e72a629b098ef15ab7a67622e67086dc9cc6e16f058ca9083e2c39242d9b814ed442364136caedb071713e
7
+ data.tar.gz: e77b2248f0938f5c8baf60cf233ed2aff6f986338177cedc600c8b509f2b6fdf9ae5dff2bf86caa3f48a78c45f758f31a626a8330c0f32b64a1b5fa31d1c7360
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.0.19](https://github.com/appydave/ad-agent_architecture/compare/v0.0.18...v0.0.19) (2024-07-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add data accessor tests ([533e067](https://github.com/appydave/ad-agent_architecture/commit/533e06780633980e1f9e17134b23acf3d915f2d9))
7
+
1
8
  ## [0.0.18](https://github.com/appydave/ad-agent_architecture/compare/v0.0.17...v0.0.18) (2024-07-04)
2
9
 
3
10
 
@@ -10,16 +10,6 @@ module Ad
10
10
 
11
11
  attributes[name] = { name: name, type: type, is_array: is_array }
12
12
  end
13
-
14
- def infer_attribute(name)
15
- raise ArgumentError, 'Attribute name must be a string or symbol' unless name.is_a?(String) || name.is_a?(Symbol)
16
-
17
- return if attributes.key?(name)
18
-
19
- # May want to add more sophisticated type inference here
20
- type = name.to_s.end_with?('s') ? 'array' : 'string'
21
- attributes[name] = { name: name, type: type, is_array: type == 'array' }
22
- end
23
13
  end
24
14
  end
25
15
  end
@@ -27,22 +27,31 @@ module Ad
27
27
  def input(name, **_opts)
28
28
  infer_attribute(name)
29
29
  @step[:input_attributes] << name
30
+ self
30
31
  end
31
32
 
32
33
  def output(name, **_opts)
33
34
  infer_attribute(name)
34
35
  @step[:output_attributes] << name
36
+ self
35
37
  end
36
38
 
37
39
  def prompt(prompt, **_opts)
38
40
  # lookup_prompt = workflow.get_prompt(prompt)
39
41
  @step[:prompt] = prompt
42
+ self
40
43
  end
41
44
 
42
45
  private
43
46
 
44
47
  def infer_attribute(name)
45
- AttributeDsl.new(workflow).infer_attribute(name)
48
+ raise ArgumentError, 'Attribute name must be a string or symbol' unless name.is_a?(String) || name.is_a?(Symbol)
49
+
50
+ return if attributes.key?(name)
51
+
52
+ # May want to add more sophisticated type inference here
53
+ type = name.to_s.end_with?('s') ? 'array' : 'string'
54
+ attributes[name] = { name: name, type: type, is_array: type == 'array' }
46
55
  end
47
56
  end
48
57
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ad
4
4
  module AgentArchitecture
5
- VERSION = '0.0.19'
5
+ VERSION = '0.0.20'
6
6
  end
7
7
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "ad-agent_architecture",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "ad-agent_architecture",
9
- "version": "0.0.19",
9
+ "version": "0.0.20",
10
10
  "devDependencies": {
11
11
  "@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
12
12
  "@semantic-release/changelog": "^6.0.3",
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ad-agent_architecture",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Architecture/Schema for AI Agents",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ad-agent_architecture
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys