@adobe/genstudio-extensibility-sdk
@adobe/genstudio-extensibility-sdk / PromptExtensionService
Manages prompt extension functionality
new PromptExtensionService():
PromptExtensionService
staticclose(connection:any):void
Closes the prompt extension
any
The guest connection to the host
void
Error if connection is missing
staticgetGenerationContext(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
staticopen(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
staticupdateAdditionalContext(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