Documentation
Table of Contents

Constructor AIGuardrailException

Namespace
IntentSharp.Providers
Assembly
IntentSharp.dll

AIGuardrailException(string, string)

Creates the exception for the named limit.

public AIGuardrailException(string guardrail, string message)

Parameters

guardrail string

The name of the limit, for example "MaxModelCalls".

message string

What the limit stopped.

AIGuardrailException(string, string, Exception)

Creates the exception for the named limit, with the exception that caused it.

public AIGuardrailException(string guardrail, string message, Exception innerException)

Parameters

guardrail string

The name of the limit, for example "MaxModelCalls".

message string

What the limit stopped.

innerException Exception

The exception that caused the stop.