Project

pangea-sdk

0.0
No release in over 3 years
Ruby library to access the Pangea API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 2.5, >= 2.5.3
 Project Readme

Pangea Ruby SDK

Ruby SDK for Pangea. Currently only supports AI Guard.

Installation

gem install pangea-sdk

Usage

require "pangea-sdk"

pangea = Pangea::Services::AiGuard.new(api_token: "my_pangea_api_token")

response = pangea.guard_text(
  text: "hello world",
  recipe: "pangea_prompt_guard",
  debug: true
)