Skip to content

Function: genieSampleQuestions()

genieSampleQuestions(space): string[]

Extract the curated starter questions an author configured on a Genie space. Reads serialized_space -> config.sample_questions[*].question. Returns [] when the space carries no serialized blob, the blob is unparseable, or no sample questions are configured - so a missing or misconfigured space degrades to “no suggestions” rather than throwing. Order is preserved (the author’s ordering) and duplicates are dropped.

string = ...

Description

Description of the Genie Space

string = ...

string = ...

Description

Genie space ID

string = ...

Description

Title of the Genie Space

string = ...

Description

Warehouse associated with the Genie Space

string[]