aiagent 0.3.0 → 0.3.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +11 -1
- data/lib/ai_agent/ruby/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c46f1d1aaa8f9ec271a8e04aa6afa8d08b207f940c99e9f0ae66f7336631a2dd
|
|
4
|
+
data.tar.gz: f9f9e087a83a2dc914c609f80f8afb740a7304102911c9ed043910c8db8f0288
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce5d258e8fba960b0b55a561480e2196ebe8db708bfc9063a70d28964b616cbe10470b57d921947cb96c7dd32d89e66c94ebbf9b8fa9bc2eb916a078e3b584e1
|
|
7
|
+
data.tar.gz: b91e1b1e07654e0e4d63de223e462f38f361c27e988e5d71059560d8a64319ac66e665d73e5921ada9a44661474eca3db7f67e6805825369e760e5778f7fbf22
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -32,7 +32,17 @@ Example initializer:
|
|
|
32
32
|
# config/initializers/ai_agent.rb
|
|
33
33
|
|
|
34
34
|
require "ai_agent/ai_agent/claude"
|
|
35
|
+
require "ai_agent/ai_agent/open_ai"
|
|
35
36
|
```
|
|
37
|
+
|
|
38
|
+
You'll also need to add supporting gems to your Gemfile for each of the agents that you enable.
|
|
39
|
+
|
|
40
|
+
```ruby
|
|
41
|
+
gem 'claude-ruby'
|
|
42
|
+
gem 'ruby-openai'
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
|
|
36
46
|
## Setup
|
|
37
47
|
|
|
38
48
|
To use this gem you'll need an API key for the agents that you want to use.
|
|
@@ -41,7 +51,7 @@ Set your API keys as environment variables, or pass them to the AiAgent initiali
|
|
|
41
51
|
|
|
42
52
|
Example with environment variables:
|
|
43
53
|
```ruby
|
|
44
|
-
|
|
54
|
+
ENV['ANTHROPIC_API_KEY'] = 'YOUR_ANTHROPIC_API_KEY'
|
|
45
55
|
|
|
46
56
|
ai_agent = AiAgent::Claude.new
|
|
47
57
|
```
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aiagent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Web Ventures Ltd
|
|
@@ -10,8 +10,8 @@ bindir: exe
|
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2024-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
14
|
-
|
|
13
|
+
description: AiAgent provides a common way to interact with the APIs provided by OpenAI,
|
|
14
|
+
Anthropic, and other AI assistants.
|
|
15
15
|
email:
|
|
16
16
|
- webven@mailgab.com
|
|
17
17
|
executables: []
|
|
@@ -55,5 +55,6 @@ requirements: []
|
|
|
55
55
|
rubygems_version: 3.5.3
|
|
56
56
|
signing_key:
|
|
57
57
|
specification_version: 4
|
|
58
|
-
summary:
|
|
58
|
+
summary: An interface for interacting with AI Agents such as ChatGPT, Claude, Gemini,
|
|
59
|
+
LeChat, Ollama.
|
|
59
60
|
test_files: []
|