Example Usage

import { Prompt } from "syllable-sdk/models/components";

let value: Prompt = {
  name: "<value>",
  type: "<value>",
  llmConfig: {
    provider: "azure_openai",
    model: "gpt-4o",
    version: "2024-05-13",
    apiVersion: "2024-06-01",
  },
  id: 20218,
  lastUpdated: "<value>",
};

Fields

FieldTypeRequiredDescription
namestringTRUEThe Prompt name
descriptionstringFALSEThe description of the prompt
typestringTRUEThe type of the prompt
contextstringFALSEThe prompt text
toolsstring[]FALSEThe tools for the prompt
llmConfigcomponents.LlmConfigTRUEThe configuration for the language model used by the Cortex API.
idnumberTRUEThe Prompt ID
editCommentsstringFALSEThe comments for the last edit
lastUpdatedstringTRUEThe last updated date of the prompt
lastUpdatedBystringFALSEThe last updated user who last updated of the prompt
agentCountnumberFALSEThe number of agents using the prompt