Releases: base-14/scope-sdk
Releases · base-14/scope-sdk
Ruby SDK v0.1.0
Ruby SDK v0.1.0
Initial release of the Scope Client Ruby SDK.
Added
ScopeClient.clientfor creating client instancesScopeClient.configurefor global configuration- Client methods:
get_prompt- Get prompt metadata by IDget_prompt_latest- Get latest version of a promptget_prompt_production- Get production version of a promptget_prompt_version- Get specific version of a promptlist_prompts- List prompts with pagination and filtersrender_prompt- Render prompt with variable substitutionclear_cache- Clear cached data
- Thread-safe caching with configurable TTL
- Automatic retries with exponential backoff
- Telemetry hooks for request/response monitoring
- Comprehensive error hierarchy:
AuthenticationError(401)AuthorizationError(403)NotFoundError(404)RateLimitError(429)ServerError(5xx)MissingVariableErrorfor template renderingNoProductionVersionErrorwhen no production version exists
- Environment variable configuration (
SCOPE_API_KEY,SCOPE_API_URL) - Full YARD documentation
- RSpec test suite with WebMock
Dependencies
- faraday >= 2.0, < 3.0
- faraday-retry ~> 2.0