latestOpenAPI 3.1.02026-08-08127304355.9 KB
69c553220183
Prompt Templates
Get prompt template by name and environment
get/api/v2/projects/{project_id}/prompt-templates/name/{name}
Path parameters
project_idstring required
namestring required
Query parameters
environmentstring nullable
formatstring nullable
flavor_namestring nullable
Response
PlainPromptTemplate(prompt_template_id: uuid.UUID, prompt_template_version_id: uuid.UUID, prompt_template_name: str, version_name: Optional[str], version_description: Optional[str], metadata: server.api_routes.prompt_templates_api_v2.PromptTemplateMetadata, format_version: int, project_id: uuid.UUID, content: list[typing.Union[server.project_sessions.prompt_template_model.ChatMessageWithMediaSlot, server.project_sessions.prompt_template_model.ChatMessage, server.project_sessions.prompt_template_model.HistoryPlaceholder]], tool_schema: Optional[list[shared.common.NormalizedToolSchema]], output_schema: Optional[dict[str, Any]])