@@ -18,6 +18,20 @@ public interface ILangfuseService
1818 string ? label = null ,
1919 CancellationToken cancellationToken = default ) ;
2020
21+ /// <summary>
22+ /// Get a chat prompt by name from Langfuse API.
23+ /// </summary>
24+ /// <param name="promptName">The name of the chat prompt</param>
25+ /// <param name="version">Optional version of the prompt to retrieve</param>
26+ /// <param name="label">Optional label of the prompt (defaults to "production" if no label or version is set)</param>
27+ /// <param name="cancellationToken">Cancellation token</param>
28+ /// <returns>The Langfuse chat prompt model</returns>
29+ Task < LangfuseChatPromptModel ? > GetChatPromptAsync (
30+ string promptName ,
31+ int ? version = null ,
32+ string ? label = null ,
33+ CancellationToken cancellationToken = default ) ;
34+
2135 /// <summary>
2236 /// Get all prompts from Langfuse API.
2337 /// </summary>
@@ -35,6 +49,16 @@ Task<CreateLangfusePromptResponse> CreatePromptAsync(
3549 CreateLangfusePromptRequest request ,
3650 CancellationToken cancellationToken = default ) ;
3751
52+ /// <summary>
53+ /// Create a new version for the chat prompt with the given name in Langfuse API.
54+ /// </summary>
55+ /// <param name="request">The chat prompt creation request</param>
56+ /// <param name="cancellationToken">Cancellation token</param>
57+ /// <returns>The created chat prompt response</returns>
58+ Task < CreateLangfuseChatPromptResponse > CreateChatPromptAsync (
59+ CreateLangfuseChatPromptRequest request ,
60+ CancellationToken cancellationToken = default ) ;
61+
3862 /// <summary>
3963 /// Update labels for a specific prompt version in Langfuse API.
4064 /// </summary>
0 commit comments