Skip to content

Commit 7494990

Browse files
author
langfuse-bot
committed
feat(api): update API spec from langfuse/langfuse 57537ad
1 parent 3008a53 commit 7494990

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

langfuse/api/resources/comments/types/create_comment_request.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,32 @@ class CreateCommentRequest(pydantic_v1.BaseModel):
3535
The id of the user who created the comment.
3636
"""
3737

38+
data_field: typing.Optional[str] = pydantic_v1.Field(
39+
alias="dataField", default=None
40+
)
41+
"""
42+
For inline comments on IO, specifies which field (input, output, or metadata). Must be set together with path, rangeStart, and rangeEnd.
43+
"""
44+
45+
path: typing.Optional[typing.List[str]] = pydantic_v1.Field(default=None)
46+
"""
47+
JSON Path expressions specifying comment location within the dataField. Must have same length as rangeStart and rangeEnd.
48+
"""
49+
50+
range_start: typing.Optional[typing.List[int]] = pydantic_v1.Field(
51+
alias="rangeStart", default=None
52+
)
53+
"""
54+
Start character offsets (inclusive, UTF-16 code units) for each path entry.
55+
"""
56+
57+
range_end: typing.Optional[typing.List[int]] = pydantic_v1.Field(
58+
alias="rangeEnd", default=None
59+
)
60+
"""
61+
End character offsets (exclusive, UTF-16 code units) for each path entry.
62+
"""
63+
3864
def json(self, **kwargs: typing.Any) -> str:
3965
kwargs_with_defaults: typing.Any = {
4066
"by_alias": True,

langfuse/api/resources/commons/types/comment.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,31 @@ class Comment(pydantic_v1.BaseModel):
1919
author_user_id: typing.Optional[str] = pydantic_v1.Field(
2020
alias="authorUserId", default=None
2121
)
22+
data_field: typing.Optional[str] = pydantic_v1.Field(
23+
alias="dataField", default=None
24+
)
25+
"""
26+
For inline comments, the IO field (input, output, metadata)
27+
"""
28+
29+
path: typing.Optional[typing.List[str]] = pydantic_v1.Field(default=None)
30+
"""
31+
JSON Path expressions for comment location
32+
"""
33+
34+
range_start: typing.Optional[typing.List[int]] = pydantic_v1.Field(
35+
alias="rangeStart", default=None
36+
)
37+
"""
38+
Start character offsets (inclusive, UTF-16)
39+
"""
40+
41+
range_end: typing.Optional[typing.List[int]] = pydantic_v1.Field(
42+
alias="rangeEnd", default=None
43+
)
44+
"""
45+
End character offsets (exclusive, UTF-16)
46+
"""
2247

2348
def json(self, **kwargs: typing.Any) -> str:
2449
kwargs_with_defaults: typing.Any = {

0 commit comments

Comments
 (0)