Skip to content
Get started

Retrieve

client.models.promptGuide.retrieve(stringmodelID, PromptGuideRetrieveParams { projectId } query?, RequestOptionsoptions?): PromptGuideRetrieveResponse { promptGuide }
GET/models/{modelId}/prompt-guide

Get the prompt guide of the given modelId

ParametersExpand Collapse
modelID: string
query: PromptGuideRetrieveParams { projectId }
projectId?: string

The projectId used for ownership resource management. Either to assert ownership or to set the owner of the resource(s)

ReturnsExpand Collapse
PromptGuideRetrieveResponse { promptGuide }
promptGuide: PromptGuide { value }
value: string

The markdown prompt guide used as the system prompt for Prompt Spark.

Instructions and baked-in examples both live in this single markdown document. No runtime templating is performed on it.

Retrieve

import Scenario from '@scenario-labs/sdk';

const client = new Scenario({
  apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
  apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});

const promptGuide = await client.models.promptGuide.retrieve('modelId');

console.log(promptGuide.promptGuide);
{
  "promptGuide": {
    "value": "value"
  }
}
Returns Examples
{
  "promptGuide": {
    "value": "value"
  }
}