< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Langfuse.LangfuseCommentRequest
Assembly: NexusLabs.Needlr.AgentFramework.Langfuse
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Langfuse/LangfuseCommentRequest.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 23
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ProjectId()100%11100%
get_ObjectType()100%11100%
get_ObjectId()100%11100%
get_Content()100%11100%
get_AuthorUserId()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Langfuse/LangfuseCommentRequest.cs

#LineLine coverage
 1namespace NexusLabs.Needlr.AgentFramework.Langfuse;
 2
 3/// <summary>
 4/// Serializable payload for <c>POST /api/public/comments</c>. Property names are projected to
 5/// camelCase by <see cref="LangfuseApiClient"/>.
 6/// </summary>
 7internal sealed record LangfuseCommentRequest
 8{
 9    /// <summary>Gets the id of the project the comment is attached to. Required by Langfuse.</summary>
 810    public required string ProjectId { get; init; }
 11
 12    /// <summary>Gets the object type (<c>TRACE</c>, <c>OBSERVATION</c>, <c>SESSION</c>, <c>PROMPT</c>).</summary>
 813    public required string ObjectType { get; init; }
 14
 15    /// <summary>Gets the id of the object the comment is attached to.</summary>
 816    public required string ObjectId { get; init; }
 17
 18    /// <summary>Gets the comment content (markdown; Langfuse limits this to 5000 characters).</summary>
 819    public required string Content { get; init; }
 20
 21    /// <summary>Gets the optional id of the user who authored the comment.</summary>
 422    public string? AuthorUserId { get; init; }
 23}