<br />

Question configuration for a Boolean Predicate evaluation.

**Signature:**

```typescript
export declare interface BooleanQuestion 
```

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [condition](https://developers.google.com/edge/api/mediapipe/js/tasks-decision.booleanquestion.md.txt#booleanquestioncondition) |   | string | The natural language boolean condition to evaluate. |
| [threshold](https://developers.google.com/edge/api/mediapipe/js/tasks-decision.booleanquestion.md.txt#booleanquestionthreshold) |   | number | Probability threshold for true. Defaults to 0.5. |
| [temperature](https://developers.google.com/edge/api/mediapipe/js/tasks-decision.booleanquestion.md.txt#booleanquestiontemperature) |   | number | Softmax temperature override (\> 0.0). When unset or \<= 0, the model's calibrated temperature is used. |
| [normalizePrior](https://developers.google.com/edge/api/mediapipe/js/tasks-decision.booleanquestion.md.txt#booleanquestionnormalizeprior) |   | boolean | Subtracts the memoized empty-context ("\[None\]") prior distribution in log-probability space to eliminate positional or label bias. |
| [options](https://developers.google.com/edge/api/mediapipe/js/tasks-decision.booleanquestion.md.txt#booleanquestionoptions) |   | ClassifierOption\[\] | Optional custom false/true option descriptions (defaults to Laya's "false: no, the statement does not hold" and "true: yes, the statement holds"). |
| [context](https://developers.google.com/edge/api/mediapipe/js/tasks-decision.booleanquestion.md.txt#booleanquestioncontext) |   | string | Optional domain or schema context prepended to the condition. |
| [imageBytes](https://developers.google.com/edge/api/mediapipe/js/tasks-decision.booleanquestion.md.txt#booleanquestionimagebytes) |   | Uint8Array | Optional raw encoded image bytes (PNG, JPEG, WebP, or TGA) for the context. |
| [audioSamples](https://developers.google.com/edge/api/mediapipe/js/tasks-decision.booleanquestion.md.txt#booleanquestionaudiosamples) |   | Float32Array | Optional mono 16kHz PCM audio samples in \[-1.0, 1.0\] for the context. |

## BooleanQuestion.condition

The natural language boolean condition to evaluate.

**Signature:**

```typescript
condition: string;
```

## BooleanQuestion.threshold

Probability threshold for true. Defaults to 0.5.

**Signature:**

```typescript
threshold?: number;
```

## BooleanQuestion.temperature

Softmax temperature override (\> 0.0). When unset or \<= 0, the model's calibrated temperature is used.

**Signature:**

```typescript
temperature?: number;
```

## BooleanQuestion.normalizePrior

Subtracts the memoized empty-context ("\[None\]") prior distribution in log-probability space to eliminate positional or label bias.

**Signature:**

```typescript
normalizePrior?: boolean;
```

## BooleanQuestion.options

Optional custom false/true option descriptions (defaults to Laya's "false: no, the statement does not hold" and "true: yes, the statement holds").

**Signature:**

```typescript
options?: ClassifierOption[];
```

## BooleanQuestion.context

Optional domain or schema context prepended to the condition.

**Signature:**

```typescript
context?: string;
```

## BooleanQuestion.imageBytes

Optional raw encoded image bytes (PNG, JPEG, WebP, or TGA) for the context.

**Signature:**

```typescript
imageBytes?: Uint8Array;
```

## BooleanQuestion.audioSamples

Optional mono 16kHz PCM audio samples in \[-1.0, 1.0\] for the context.

**Signature:**

```typescript
audioSamples?: Float32Array;
```