Parameters for the postPrompt operation.

interface PostPromptParams {
    createdAt?: number;
    description?: string;
    headers?: OutgoingHttpHeaders;
    inputMode?: string;
    lock?: WatsonXAI.PromptLock;
    modelVersion?: WatsonXAI.WxPromptPostModelVersion;
    name: string;
    projectId?: string;
    prompt: WatsonXAI.PromptWithExternal;
    promptVariables?: WatsonXAI.JsonObject;
    spaceId?: string;
    taskIds?: string[];
}

Properties

createdAt?: number

Time the prompt was created.

description?: string

An optional description for the prompt.

headers?: OutgoingHttpHeaders
inputMode?: string

Input mode in use for the prompt.

name: string

Name used to display the prompt.

projectId?: string

[REQUIRED] Specifies the project ID as the target. One target must be supplied per request.

promptVariables?: WatsonXAI.JsonObject
spaceId?: string

[REQUIRED] Specifies the space ID as the target. One target must be supplied per request.

taskIds?: string[]