|
1 |
| -LaunchDarkly Server-side AI library for Ruby |
| 1 | +LaunchDarkly Server SDK AI library for Ruby |
2 | 2 | ==============================================
|
3 | 3 |
|
| 4 | +[](http://badge.fury.io/rb/launchdarkly-server-sdk-ai) |
| 5 | + |
| 6 | +[](https://github.com/launchdarkly/ruby-server-sdk-ai/actions/workflows/ci.yml) |
| 7 | +[](https://www.rubydoc.info/gems/launchdarkly-server-sdk-ai) |
| 8 | +[](https://launchdarkly.github.io/ruby-server-sdk-ai) |
| 9 | + |
| 10 | +LaunchDarkly overview |
| 11 | +------------------------- |
| 12 | +[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves trillions of feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today! |
| 13 | + |
| 14 | +[](https://twitter.com/intent/follow?screen_name=launchdarkly) |
| 15 | + |
| 16 | +Supported Ruby versions |
| 17 | +----------------------- |
| 18 | + |
| 19 | +This version of the library has a minimum Ruby version of 3.0.0, or 9.4.0 for JRuby. |
| 20 | + |
| 21 | +Getting started |
| 22 | +----------- |
| 23 | + |
| 24 | +Install the gem and add to the application's Gemfile by executing: |
| 25 | + |
| 26 | + $ bundle add launchdarkly-server-sdk-ai |
| 27 | + |
| 28 | +If bundler is not being used to manage dependencies, install the gem by executing: |
| 29 | + |
| 30 | + $ gem install launchdarkly-server-sdk-ai |
| 31 | + |
| 32 | +The provided AI `Client` can be setup as shown below: |
| 33 | + |
| 34 | +```ruby |
| 35 | +require 'launchdarkly-server-sdk' |
| 36 | +require 'launchdarkly-server-sdk-ai' |
| 37 | + |
| 38 | +sdk_key = ENV['LAUNCHDARKLY_SDK_KEY'] |
| 39 | +ld_client = LaunchDarkly::LDClient.new(sdk_key) |
| 40 | +ai_client = LaunchDarkly::Server::AI::Client.new(ld_client) |
| 41 | +``` |
| 42 | + |
4 | 43 | Learn more
|
5 | 44 | -----------
|
6 | 45 |
|
|
0 commit comments