Skip to content

Conversation

@roh26it
Copy link
Collaborator

@roh26it roh26it commented Dec 22, 2025

Summary

The Pangea security integration is being deprecated.

Changes

This PR removes all Pangea-related definitions:

  • pangea.textGuard check type enum value
  • pangea.pii check type enum value
  • PangeaTextGuardParameters schema
  • PangeaPIIParameters schema
  • Related examples in guardrail creation

Reason

  1. Pangea integration is deprecated
  2. The PangeaTextGuardParameters.overrides field causes a Go SDK build error:
    T (type GuardrailCheckParametersPangeaTextGuardParametersParam) does not satisfy param.ParamStruct
    (GuardrailCheckParametersPangeaTextGuardParametersParam.Overrides is a field, not a method)
    
    This happens because the generated struct has an Overrides field, but the param.ParamStruct interface requires an Overrides() method.

Testing

  • Verified no remaining pangea references in the spec
  • This fix allows the Stainless-generated Go SDK to build successfully

The Pangea security integration is being deprecated. This PR removes:
- pangea.textGuard check type
- pangea.pii check type
- PangeaTextGuardParameters schema (which had an 'overrides' field causing Go SDK build issues)
- PangeaPIIParameters schema
- Related examples

This also fixes a Go SDK build error where the PangeaTextGuardParameters.Overrides
field conflicted with the param.ParamStruct interface's Overrides() method.
@roh26it
Copy link
Collaborator Author

roh26it commented Dec 22, 2025

Closing to create a cleaner PR with only Pangea changes

@roh26it roh26it closed this Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants