LangfusePrompt
NexusLabs.Needlr.AgentFramework.Langfuse¶
LangfusePrompt Class¶
A prompt fetched from Langfuse prompt management. Use Text for a text prompt's content, and pass the prompt to SetPrompt(LangfusePrompt) to link generations to the exact version that was used.
public sealed record LangfusePrompt : System.IEquatable<NexusLabs.Needlr.AgentFramework.Langfuse.LangfusePrompt>
Inheritance System.Object 🡒 LangfusePrompt
Implements System.IEquatable<LangfusePrompt>
Properties¶
LangfusePrompt.Labels Property¶
Gets the labels applied to this version (for example production).
Property Value¶
System.Collections.Generic.IReadOnlyList<System.String>
LangfusePrompt.Name Property¶
Gets the prompt name.
Property Value¶
LangfusePrompt.Prompt Property¶
Gets the raw prompt content: a JSON string for a text prompt, or a JSON array of messages for a chat prompt.
Property Value¶
LangfusePrompt.Tags Property¶
Gets the prompt tags.
Property Value¶
System.Collections.Generic.IReadOnlyList<System.String>
LangfusePrompt.Text Property¶
Gets the text content for a text prompt, or null for a chat prompt
(use Prompt for chat messages).
Property Value¶
LangfusePrompt.Type Property¶
Gets the prompt type (text or chat).
Property Value¶
LangfusePrompt.Version Property¶
Gets the prompt version.