omniai 1.8.3 → 1.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3aa80243c35a4c2b3ed765f36cc901778618686adba661bb807cd7bd5f698c62
4
- data.tar.gz: a5b7a73edda5894f1461f50f6543f124fe628c800772a5b28cb28ecbe7ac2367
3
+ metadata.gz: 38eed1bd7e34d8cd092630356e9de0d6ec31ad1943d2657d866f9f2bc62a3b3c
4
+ data.tar.gz: 457d415c96fd8e79b37f8502288dcbaec8fccaca1454405be5d3168bc25d8280
5
5
  SHA512:
6
- metadata.gz: f85926e78211149bd4d822e4685d0fda12fca80c54953f7a3c8ca18c404a9b97a64900f24f63401d5c81620d4f5867404486d41fd7390d674679044190198209
7
- data.tar.gz: 9f85af9d52bf2d989332be7f0d81b9ca0fc15420de6ddfc1158787e9e2cebdff5d5c084b5135019e3588175d7392e884e2c41a02688317c628ea73b94ea5cdce
6
+ metadata.gz: 83d6770055e2b05a25e4e68dcb3ef3be825ce63326b25c492d206fe88b772d7689e7474f56ed1a4e9ad7e0d42f9afc7e6b2a44d9b7c7021297869550e126c8a2
7
+ data.tar.gz: 99b584ab83c1e2c5c4f4e4ad73fd803263b5d60a47c8f27c24758bffb5a618f9b23df8a34cfdde43e23adf55252b281dd10c7f67034affdc78498e39f833ea31
@@ -146,10 +146,10 @@ module OmniAI
146
146
  end
147
147
 
148
148
  # @example
149
- # prompt.agent('the capital of Canada is Ottawa.')
149
+ # prompt.assistant('the capital of Canada is Ottawa.')
150
150
  #
151
151
  # @example
152
- # prompt.agent do |message|
152
+ # prompt.assistant do |message|
153
153
  # message.text 'the capital of Canada is Ottawa.'
154
154
  # end
155
155
  #
@@ -159,8 +159,8 @@ module OmniAI
159
159
  # @yieldparam builder [Message::Builder]
160
160
  #
161
161
  # @return [Message]
162
- def agent(content = nil, &)
163
- message(content, role: Role::AGENT, &)
162
+ def assistant(content = nil, &)
163
+ message(content, role: Role::ASSISTANT, &)
164
164
  end
165
165
  end
166
166
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniAI
4
- VERSION = '1.8.3'
4
+ VERSION = '1.8.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.3
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre