Jev directory
CommunityJev Repos & SDKs
Jevrb
Synchronous Ruby client for the TypeSafe System One API that returns immutable typed objects for every documented answer type, including Noul, Choice, and Score answers, with RBS declarations and a configurable retry policy.
- Reading time
- 2 min
- Published by
- Community
- Added
- Nov 23, 2026
Highlights
- Requires Ruby 3.2 or later and a TypeSafe API key.
- Sends Noul, Choice, and Score questions together in one system_one call.
- Default timeout is 10.0 seconds; the default retry policy retries twice.
- Ships RBS declarations in sig/jevrb.rbs, validated with rbs -I sig validate.
- MIT licensed; errors inherit from Jev::Error and expose request_id.
Questions about this entry
Short answers drawn from the linked project or page.
Add gem "jevrb" to your Gemfile and run bundle install, then export TYPESAFE_API_KEY with your TypeSafe API key. The gem is published on RubyGems and requires Ruby 3.2 or later.
Ruby 3.2 or later. The gem also ships RBS declarations in sig/jevrb.rbs, which you can validate with bundle exec rbs -I sig validate.
Noul (yes/no), Choice, and Score questions, built with Jev::Noul.build, Jev::Choice.build, and Jev::Score.build. State and instructions accept strings, hashes, and arrays, and nested values must be valid JSON values.
Each answer is a typed object: result.answers[:is_urgent] is a Jev::NoulAnswer, result.answers[:department] a Jev::ChoiceAnswer, result.answers[:frustration] a Jev::ScoreAnswer. Grouped accessors such as result.choices and result.scores expose probabilities, confidence, and legend.
The default Jev::RetryPolicy retries connection errors, timeout errors, HTTP 408, HTTP 429, and status codes 500 through 599. It retries twice after the first request and obeys Retry-After and retry-after-ms headers. Disable it with Jev::RetryPolicy.new(max_retries: 0).
All SDK errors inherit from Jev::Error, including Jev::ConfigurationError, Jev::ConnectionError, Jev::TimeoutError, and Jev::ResponseValidationError. HTTP errors inherit from Jev::APIError and expose status, body, headers, endpoint, and request_id.
Jevrb uses the MIT License. Development tasks run through bin/setup and bundle exec rake, which runs the tests, RBS validation, and RuboCop.
From the Jev guides
Original write-ups on what this entry is for.
From the Jev AI model community
Posts from builders shipping with Jev right now.