OutputGuardrailTripwireTriggered
Error thrown when an output guardrail tripwire is triggered.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”Type Parameter | Default type |
---|---|
|
‐ |
|
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OutputGuardrailTripwireTriggered<TMeta, TOutputType>( message, result,state?): OutputGuardrailTripwireTriggered<TMeta, TOutputType>
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”OutputGuardrailTripwireTriggered
<TMeta
, TOutputType
>
Overrides
Section titled “Overrides”Properties
Section titled “Properties”message
Section titled “message”message: string;
Inherited from
Section titled “Inherited from”name: string;
Inherited from
Section titled “Inherited from”result
Section titled “result”result: OutputGuardrailResult<TMeta, TOutputType>;
stack?
Section titled “stack?”optional stack: string;
Inherited from
Section titled “Inherited from”state?
Section titled “state?”optional state: RunState<any, Agent<any, any>>;
Inherited from
Section titled “Inherited from”prepareStackTrace()?
Section titled “prepareStackTrace()?”static optional prepareStackTrace: (err, stackTraces) => any;
Optional override for formatting stack traces
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
|
|
|
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”stackTraceLimit
Section titled “stackTraceLimit”static stackTraceLimit: number;
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”static captureStackTrace(targetObject, constructorOpt?): void
Create .stack property on a target object
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
|
|
|
Returns
Section titled “Returns”void