@adobe/genstudio-extensibility-sdk
@adobe/genstudio-extensibility-sdk / PromptExtensionService
Manages prompt extension functionality
new PromptExtensionService():
PromptExtensionService
static
close(connection
:any
):void
Closes the prompt extension
any
The guest connection to the host
void
Error if connection is missing
static
getGenerationContext(connection
:any
):Promise
<GenerationContext
>
Gets the generation context from the prompt extension
any
The guest connection to the host
Promise
<GenerationContext
>
Promise
Error if connection is missing
static
open(connection
:any
,extensionId
:string
):void
Opens the prompt extension
any
The guest connection to the host
string
The ID of the extension to open
void
Error if connection is missing
static
updateAdditionalContext(connection
:any
,context
:AdditionalContext
<any
>):void
Updates the additional context in the prompt extension
any
The guest connection to the host
AdditionalContext
<any
>
The additional context to update
void
Error if connection is missing