mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-04 08:57:34 +08:00
feat(mcp): add post detail retrieval tool
This commit is contained in:
@@ -260,3 +260,14 @@ class RecentPostsResponse(BaseModel):
|
||||
|
||||
|
||||
CommentData.model_rebuild()
|
||||
|
||||
|
||||
class PostDetail(PostSummary):
|
||||
"""Detailed information for a single post, including comments."""
|
||||
|
||||
comments: list[CommentData] = Field(
|
||||
default_factory=list,
|
||||
description="Comments that belong to the post.",
|
||||
)
|
||||
|
||||
model_config = ConfigDict(populate_by_name=True, extra="allow")
|
||||
|
||||
Reference in New Issue
Block a user