@adobe/genstudio-uix-sdk / GenerationContextService
new GenerationContextService():
GenerationContextService
static
getGenerationContext(connection
:GuestUI
<CreateApi
>):Promise
<GenerationContext
>
Gets the generation context
GuestUI
<CreateApi
>
The guest connection to the host
Promise
<GenerationContext
>
The generation context
Error if connection is missing
static
setAdditionalContext(connection
:GuestUI
<CreateApi
>,additionalContext
:AdditionalContext
<any
>):Promise
<void
>
Sets additional context on the prompt
GuestUI
<CreateApi
>
The guest connection to the host
AdditionalContext
<any
>
The additional context object
Promise
<void
>
void
Error if connection is missing