Generate custom SDKs for langfuse prompts #4766
zachkirsch
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Publishing SDKs feels ideal, but a quicker & dirtier solution would to just generate a whole // generated code
// copied from langfuse ui
export const LangfusePrompts {
myPrompt1: {
compile: async (arg1: string) => { /* ... */ },
},
myPrompt2: {
compile: async (arg1: string, arg2: string) => { /* ... */ },
},
/* ... */
} |
Beta Was this translation helpful? Give feedback.
3 replies
-
+1, agree that the magic strings are not the best DX right now, both for prompt names, the types that these prompts have (chat or text) and the variables that are available for each prompt. Options
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the feature or potential improvement
It would be awesome if langfuse generated a custom SDK for my langfuse prompts. Between prompt names and prompt params, there's a lot of magic strings floating around my codebase right now, and zero type safety. This would improve the devx and reduce bugs at runtime.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions