ruby_conversations 1.0.8 → 1.0.9
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/README.md +1 -26
- data/lib/ruby_conversations/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c9ac759157e0a174601a8eb345c21dc4cb6916408d757a54b2e7ffb44173b01
|
4
|
+
data.tar.gz: 6357e028b36fc6a1ad772f52ede341d638e393d6b03f9530b5951dfeaa8677da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a4f6e671026766297cf3cd4ad9ed0c66c7f4beac979480349447c3b257a69ce88aa8b38ebbf7e5ea1961e29341e749bfea8a4626f743908d64f1ecbd93efd07
|
7
|
+
data.tar.gz: 6abdb98f3d9df53efb8c12e894c6648417b964733f4a3ac0a0a9d28609a2faf146f7ac30f1aacb2ce71b32bdb85afecce8c46dbed67821fffa76ea2236f4a58a
|
data/README.md
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
# RubyConversations
|
2
2
|
|
3
|
-
A Rails engine for managing AI conversations
|
3
|
+
A Rails engine for managing AI conversations and storing them in prompt studio. Built on top of RubyLLM for AI interactions.
|
4
4
|
|
5
5
|
## Features
|
6
6
|
|
7
|
-
- **Flexible Storage**: Choose between local database storage or remote API storage
|
8
7
|
- **Built-in Prompt Management**: Version-controlled prompts with placeholder validation
|
9
8
|
- **Conversation History**: Track and manage conversation threads
|
10
9
|
- **Input/Output Storage**: Structured storage for message inputs and responses
|
@@ -32,17 +31,6 @@ Or install it yourself as:
|
|
32
31
|
gem install ruby_conversations
|
33
32
|
```
|
34
33
|
|
35
|
-
After installation, run the setup generator:
|
36
|
-
|
37
|
-
```bash
|
38
|
-
rails generate ai_conversation_engine:install
|
39
|
-
```
|
40
|
-
|
41
|
-
This will:
|
42
|
-
- Create necessary database migrations
|
43
|
-
- Generate an initializer file
|
44
|
-
- Set up default configurations
|
45
|
-
|
46
34
|
## Configuration
|
47
35
|
|
48
36
|
Configure the engine in `config/initializers/ai_conversation_engine.rb`:
|
@@ -83,19 +71,6 @@ conversation = project.conversations.create!
|
|
83
71
|
conversation.ask("analyze_project", inputs: { name: project.name })
|
84
72
|
```
|
85
73
|
|
86
|
-
### Remote Storage Mode
|
87
|
-
|
88
|
-
```ruby
|
89
|
-
# Configure for remote storage
|
90
|
-
ConversationEngine.configure do |config|
|
91
|
-
config.api_url = "https://ai-conversation-api.example.com"
|
92
|
-
config.jwt_secret = ENV['JWT_SECRET']
|
93
|
-
end
|
94
|
-
|
95
|
-
# Usage remains the same
|
96
|
-
conversation = AiConversation.create!
|
97
|
-
conversation.ask("explain_code", inputs: { code: "def hello; end" })
|
98
|
-
```
|
99
74
|
|
100
75
|
### Real-time Updates
|
101
76
|
|