DecisionContext

public final class DecisionContext

Perceptual input context for multimodal or text-only decision evaluation.

Public Constructors

DecisionContext(String text, byte[] imageRgb, int imageWidth, int imageHeight, int imageChannels, byte[] imageBytes, float[] audioSamples, int audioSampleRate, float[] embedding)
Creates a DecisionContext.

Public Methods

int
getAudioSampleRate()
Sample rate in Hz for getAudioSamples() (defaults to 16000).
float[]
getAudioSamples()
Mono float32 PCM audio samples in [-1.0, 1.0].
float[]
getEmbedding()
Optional precomputed context embedding vector.
byte[]
getImageBytes()
Encoded PNG/JPEG image bytes.
int
getImageChannels()
Channel count of getImageRgb() (3 for RGB, 4 for RGBA).
int
getImageHeight()
Height of getImageRgb() in pixels.
byte[]
getImageRgb()
Raw interleaved RGB/RGBA pixel bytes (width * height * channels).
int
getImageWidth()
Width of getImageRgb() in pixels.
String
getText()
Primary text context or transcript.

Inherited Methods

Public Constructors

public DecisionContext (String text, byte[] imageRgb, int imageWidth, int imageHeight, int imageChannels, byte[] imageBytes, float[] audioSamples, int audioSampleRate, float[] embedding)

Creates a DecisionContext.

Parameters
text Primary text context or transcript.
imageRgb Raw interleaved RGB/RGBA pixel bytes (width * height * channels).
imageWidth Width of imageRgb in pixels.
imageHeight Height of imageRgb in pixels.
imageChannels Channel count of imageRgb (3 for RGB, 4 for RGBA).
imageBytes Encoded PNG/JPEG image bytes.
audioSamples Mono float32 PCM audio samples in [-1.0, 1.0].
audioSampleRate Sample rate in Hz for audioSamples (defaults to 16000).
embedding Optional precomputed context embedding vector.

Public Methods

public int getAudioSampleRate ()

Sample rate in Hz for getAudioSamples() (defaults to 16000).

public float[] getAudioSamples ()

Mono float32 PCM audio samples in [-1.0, 1.0].

public float[] getEmbedding ()

Optional precomputed context embedding vector.

public byte[] getImageBytes ()

Encoded PNG/JPEG image bytes.

public int getImageChannels ()

Channel count of getImageRgb() (3 for RGB, 4 for RGBA).

public int getImageHeight ()

Height of getImageRgb() in pixels.

public byte[] getImageRgb ()

Raw interleaved RGB/RGBA pixel bytes (width * height * channels).

public int getImageWidth ()

Width of getImageRgb() in pixels.

public String getText ()

Primary text context or transcript.