Versions in this module Expand all Collapse all v1 v1.2.0 Jan 20, 2026 Changes in this version type AIGuardService + func (r *AIGuardService) Unredact(ctx context.Context, body AIGuardUnredactParams, opts ...option.RequestOption) (res *AIGuardUnredactResponse, err error) + type AIGuardUnredactParams struct + FpeContext string + RedactedData any + func (r *AIGuardUnredactParams) UnmarshalJSON(data []byte) error + func (r AIGuardUnredactParams) MarshalJSON() (data []byte, err error) + type AIGuardUnredactResponse struct + JSON struct{ ... } + Result AIGuardUnredactResponseResult + func (r *AIGuardUnredactResponse) UnmarshalJSON(data []byte) error + func (r AIGuardUnredactResponse) RawJSON() string + type AIGuardUnredactResponseResult struct + Data any + JSON struct{ ... } + func (r *AIGuardUnredactResponseResult) UnmarshalJSON(data []byte) error + func (r AIGuardUnredactResponseResult) RawJSON() string + type PangeaResponse struct + JSON struct{ ... } + RequestID string + RequestTime time.Time + ResponseTime time.Time + Status string + Summary string + func (r *PangeaResponse) UnmarshalJSON(data []byte) error + func (r PangeaResponse) RawJSON() string v1.1.0 Jan 5, 2026 v1.0.0 Dec 19, 2025 Changes in this version + func Bool(b bool) param.Opt[bool] + func BoolPtr(v bool) *bool + func DefaultClientOptions() []option.RequestOption + func File(rdr io.Reader, filename, contentType string) file + func Float(f float64) param.Opt[float64] + func FloatPtr(v float64) *float64 + func Int(i int64) param.Opt[int64] + func IntPtr(v int64) *int64 + func Opt[T comparable](v T) param.Opt[T] + func Ptr[T any](v T) *T + func String(s string) param.Opt[string] + func StringPtr(v string) *string + func Time(t time.Time) param.Opt[time.Time] + func TimePtr(v time.Time) *time.Time + type AIGuardGetAsyncRequestResponse struct + JSON struct{ ... } + RequestID string + RequestTime time.Time + ResponseTime time.Time + Result any + Status string + Summary string + func (r *AIGuardGetAsyncRequestResponse) UnmarshalJSON(data []byte) error + func (r AIGuardGetAsyncRequestResponse) RawJSON() string + type AIGuardGuardChatCompletionsParams struct + AppID param.Opt[string] + CollectorInstanceID param.Opt[string] + EventType AIGuardGuardChatCompletionsParamsEventType + ExtraInfo AIGuardGuardChatCompletionsParamsExtraInfo + GuardInput any + LlmProvider param.Opt[string] + Model param.Opt[string] + ModelVersion param.Opt[string] + SourceIP param.Opt[string] + SourceLocation param.Opt[string] + TenantID param.Opt[string] + UserID param.Opt[string] + func (r *AIGuardGuardChatCompletionsParams) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsParams) MarshalJSON() (data []byte, err error) + type AIGuardGuardChatCompletionsParamsEventType string + const AIGuardGuardChatCompletionsParamsEventTypeInput + const AIGuardGuardChatCompletionsParamsEventTypeOutput + const AIGuardGuardChatCompletionsParamsEventTypeToolInput + const AIGuardGuardChatCompletionsParamsEventTypeToolListing + const AIGuardGuardChatCompletionsParamsEventTypeToolOutput + type AIGuardGuardChatCompletionsParamsExtraInfo struct + ActorGroup param.Opt[string] + ActorName param.Opt[string] + AppGroup param.Opt[string] + AppName param.Opt[string] + AppVersion param.Opt[string] + ExtraFields map[string]any + McpTools []AIGuardGuardChatCompletionsParamsExtraInfoMcpTool + SourceRegion param.Opt[string] + SubTenant param.Opt[string] + func (r *AIGuardGuardChatCompletionsParamsExtraInfo) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsParamsExtraInfo) MarshalJSON() (data []byte, err error) + type AIGuardGuardChatCompletionsParamsExtraInfoMcpTool struct + ServerName string + Tools []string + func (r *AIGuardGuardChatCompletionsParamsExtraInfoMcpTool) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsParamsExtraInfoMcpTool) MarshalJSON() (data []byte, err error) + type AIGuardGuardChatCompletionsResponse struct + JSON struct{ ... } + RequestID string + RequestTime time.Time + ResponseTime time.Time + Result AIGuardGuardChatCompletionsResponseResult + Status AIGuardGuardChatCompletionsResponseStatus + Summary string + func (r *AIGuardGuardChatCompletionsResponse) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponse) RawJSON() string + type AIGuardGuardChatCompletionsResponseResult struct + AccessRules any + Blocked bool + Detectors AIGuardGuardChatCompletionsResponseResultDetectors + FpeContext string + GuardOutput any + JSON struct{ ... } + Policy string + Transformed bool + func (r *AIGuardGuardChatCompletionsResponseResult) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResult) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectors struct + Code AIGuardGuardChatCompletionsResponseResultDetectorsCode + Competitors AIGuardGuardChatCompletionsResponseResultDetectorsCompetitors + ConfidentialAndPiiEntity AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntity + CustomEntity AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntity + JSON struct{ ... } + Language AIGuardGuardChatCompletionsResponseResultDetectorsLanguage + MaliciousEntity AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntity + MaliciousPrompt AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPrompt + SecretAndKeyEntity AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntity + Topic AIGuardGuardChatCompletionsResponseResultDetectorsTopic + func (r *AIGuardGuardChatCompletionsResponseResultDetectors) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectors) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsCode struct + Data AIGuardGuardChatCompletionsResponseResultDetectorsCodeData + Detected bool + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsCode) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsCode) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsCodeData struct + Action string + JSON struct{ ... } + Language string + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsCodeData) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsCodeData) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsCompetitors struct + Data AIGuardGuardChatCompletionsResponseResultDetectorsCompetitorsData + Detected bool + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsCompetitors) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsCompetitors) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsCompetitorsData struct + Action string + Entities []string + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsCompetitorsData) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsCompetitorsData) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntity struct + Data AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntityData + Detected bool + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntity) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntity) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntityData struct + Entities []AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntityDataEntity + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntityData) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntityData) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntityDataEntity struct + Action string + JSON struct{ ... } + StartPos int64 + Type string + Value string + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntityDataEntity) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsConfidentialAndPiiEntityDataEntity) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntity struct + Data AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntityData + Detected bool + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntity) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntity) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntityData struct + Entities []AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntityDataEntity + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntityData) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntityData) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntityDataEntity struct + Action string + JSON struct{ ... } + StartPos int64 + Type string + Value string + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntityDataEntity) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsCustomEntityDataEntity) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsLanguage struct + Data AIGuardGuardChatCompletionsResponseResultDetectorsLanguageData + Detected bool + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsLanguage) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsLanguage) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsLanguageData struct + Action string + JSON struct{ ... } + Language string + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsLanguageData) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsLanguageData) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntity struct + Data AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntityData + Detected bool + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntity) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntity) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntityData struct + Entities []AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntityDataEntity + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntityData) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntityData) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntityDataEntity struct + JSON struct{ ... } + Raw any + StartPos int64 + Type string + Value string + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntityDataEntity) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousEntityDataEntity) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPrompt struct + Data AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPromptData + Detected bool + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPrompt) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPrompt) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPromptData struct + Action string + AnalyzerResponses []AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPromptDataAnalyzerResponse + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPromptData) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPromptData) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPromptDataAnalyzerResponse struct + Analyzer string + Confidence float64 + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPromptDataAnalyzerResponse) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsMaliciousPromptDataAnalyzerResponse) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntity struct + Data AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntityData + Detected bool + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntity) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntity) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntityData struct + Entities []AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntityDataEntity + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntityData) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntityData) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntityDataEntity struct + Action string + JSON struct{ ... } + StartPos int64 + Type string + Value string + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntityDataEntity) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsSecretAndKeyEntityDataEntity) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsTopic struct + Data AIGuardGuardChatCompletionsResponseResultDetectorsTopicData + Detected bool + JSON struct{ ... } + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsTopic) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsTopic) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsTopicData struct + Action string + JSON struct{ ... } + Topics []AIGuardGuardChatCompletionsResponseResultDetectorsTopicDataTopic + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsTopicData) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsTopicData) RawJSON() string + type AIGuardGuardChatCompletionsResponseResultDetectorsTopicDataTopic struct + Confidence float64 + JSON struct{ ... } + Topic string + func (r *AIGuardGuardChatCompletionsResponseResultDetectorsTopicDataTopic) UnmarshalJSON(data []byte) error + func (r AIGuardGuardChatCompletionsResponseResultDetectorsTopicDataTopic) RawJSON() string + type AIGuardGuardChatCompletionsResponseStatus string + const AIGuardGuardChatCompletionsResponseStatusSuccess + type AIGuardService struct + Options []option.RequestOption + ServiceName string + func NewAIGuardService(opts ...option.RequestOption) (r AIGuardService) + func (r *AIGuardService) GetAsyncRequest(ctx context.Context, requestID string, opts ...option.RequestOption) (res *AIGuardGetAsyncRequestResponse, err error) + func (r *AIGuardService) GuardChatCompletions(ctx context.Context, body AIGuardGuardChatCompletionsParams, ...) (res *AIGuardGuardChatCompletionsResponse, err error) + type Client struct + AIGuard AIGuardService + Options []option.RequestOption + func NewClient(opts ...option.RequestOption) (r Client) + func (r *Client) Delete(ctx context.Context, path string, params, res any, ...) error + func (r *Client) Execute(ctx context.Context, method, path string, params, res any, ...) error + func (r *Client) Get(ctx context.Context, path string, params, res any, ...) error + func (r *Client) Patch(ctx context.Context, path string, params, res any, ...) error + func (r *Client) Post(ctx context.Context, path string, params, res any, ...) error + func (r *Client) Put(ctx context.Context, path string, params, res any, ...) error + type Error = apierror.Error