Get Prompt

View as Markdown
Get a prompt by workspace and name.

Path parameters

workspacestringRequired
namestringRequired

Response

Return prompt details
namestringformat: "^[\w\-.]+$"<=255 characters

Name of the entity. Name/workspace combo must be unique across all entities. Allowed characters: letters (a-z, A-Z), digits (0-9), underscores, hyphens, and dots.

workspacestringformat: "^[\w\-.]+$"<=255 characters

The workspace of the entity. Allowed characters: letters (a-z, A-Z), digits (0-9), underscores, hyphens, and dots.

created_atdatetime
The timestamp of model entity creation
updated_atdatetime
The timestamp of the last model entity update
idstringOptional
Unique identifier for the prompt.
projectstringOptionalformat: "^[\w\-./]+$"<=255 characters
The URN of the project associated with this entity.
descriptionstringOptional<=1000 characters
Optional description of the prompt.
messageslist of objectsOptional
Ordered list of chat messages that make up the prompt.
input_variableslist of stringsOptional
Names of the Jinja2 template variables the prompt expects.
toolslist of objectsOptional

Optional OpenAI-compatible tool definitions to send with the prompt.

tool_choicestring or map from strings to anyOptional

Controls which (if any) tool is called: ‘none’, ‘auto’, ‘required’, or a named-tool object.

response_formatmap from strings to anyOptional

Optional OpenAI-compatible response_format, e.g. a json_schema structured-output spec.

inference_paramsobjectOptional

Optional default model and sampling parameters (temperature, top_p, max_tokens, …).

tagslist of stringsOptional

Optional free-form tags for organizing prompts.

Errors

422
Unprocessable Entity Error