Package: ivycheck
IvyCheck-SDKSDK InstallationpipinstallivycheckSDK Example UsageExampleimportivycheckivy=ivycheck.Ivycheck(api_key="<YOUR_BEARER_TOKEN_HERE>",)res=ivy.prompts.complete(project_id='d4c3d02b-0b2b-40ab-bae4-c267f5109d00',prompt_version=1,stream=False,request_body={"your_input_field_1":"some_value",...})Available Resources and Operationschecksmax_chars- Max Charshallucination- Hallucinationmax_words- Max Wordscontains- Containscontains_not- Contains Notpii- Piimoderation- Moderationprompt_injection- Prompt Injectionvalid_json- Valid Jsonvalid_sql- Valid Sqlrun_checks- Run Checksrun_all_checks- Run All Checkspromptscomplete- Completecomplete_streaming- Complete Streamingtestscreate_test_dataset- Create Test Datasetcreate_testcase- Create Testcaserun_tests- Run Testsget_test_cases- Get Test Casesevaluationscreate_evaluation- Create Evaluationevaluate- EvaluateError HandlingHandling errors in this SDK should largely match your expectations.  All operations return a response object or raise an error.  If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.Error ObjectStatus CodeContent Typemodels.HTTPValidationError422application/jsonmodels.SDKError4x-5xx/Exampleimportivycheckfromivycheckimportmodelss=ivycheck.Ivycheck(api_key="<YOUR_BEARER_TOKEN_HERE>",)res=Nonetry:res=s.checks.max_chars(text='<value>',max_chars=180944,project_id='<value>')exceptmodels.HTTPValidationErrorase:# handle exceptionraise(e)exceptmodels.SDKErrorase:# handle exceptionraise(e)ifres.check_resultisnotNone:# handle responsepassServer SelectionSelect Server by NameYou can override the default server globally by passing a server name to theserver: stroptional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:NameServerVariablesprodhttps://ivycheck-backend.onrender.comNonesandboxhttp://localhost:8000NoneExampleimportivychecks=ivycheck.Ivycheck(server="sandbox",api_key="<YOUR_BEARER_TOKEN_HERE>",)res=s.checks.max_chars(text='<value>',max_chars=180944,project_id='<value>')ifres.check_resultisnotNone:# handle responsepassOverride Server URL Per-ClientThe default server can also be overridden globally by passing a URL to theserver_url: stroptional parameter when initializing the SDK client instance. For example:importivychecks=ivycheck.Ivycheck(server_url="https://ivycheck-backend.onrender.com",api_key="<YOUR_BEARER_TOKEN_HERE>",)res=s.checks.max_chars(text='<value>',max_chars=180944,project_id='<value>')ifres.check_resultisnotNone:# handle responsepassCustom HTTP ClientThe Python SDK makes API calls using therequestsHTTP library.  In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a customrequests.Sessionobject.For example, you could specify a header for every request that this sdk makes as follows:importivycheckimportrequestshttp_client=requests.Session()http_client.headers.update({'x-custom-header':'someValue'})s=ivycheck.Ivycheck(client:http_client)AuthenticationPer-Client Security SchemesThis SDK supports the following security scheme globally:NameTypeSchemeapi_keyhttpHTTP BearerTo authenticate with the API theapi_keyparameter must be set when initializing the SDK client instance. For example:importivychecks=ivycheck.Ivycheck(api_key="<YOUR_BEARER_TOKEN_HERE>",)res=s.checks.max_chars(text='<value>',max_chars=180944,project_id='<value>')ifres.check_resultisnotNone:# handle responsepassDevelopmentMaturityThis SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
looking for the latest version.ContributionsWhile we value open-source contributions to this SDK, this library is generated programmatically.
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!SDK Created bySpeakeasy