MCPcopy
hub / github.com/coderamp-labs/gitingest / IngestSuccessResponse

Class IngestSuccessResponse

src/server/models.py:65–99  ·  view source on GitHub ↗

Success response model for the /api/ingest endpoint. Attributes ---------- repo_url : str The original repository URL that was processed. short_repo_url : str Short form of repository URL (user/repo). summary : str Summary of the ingestion process includi

Source from the content-addressed store, hash-verified

63
64
65class IngestSuccessResponse(BaseModel):
66 """Success response model for the /api/ingest endpoint.
67
68 Attributes
69 ----------
70 repo_url : str
71 The original repository URL that was processed.
72 short_repo_url : str
73 Short form of repository URL (user/repo).
74 summary : str
75 Summary of the ingestion process including token estimates.
76 digest_url : str
77 URL to download the full digest content (either S3 URL or local download endpoint).
78 tree : str
79 File tree structure of the repository.
80 content : str
81 Processed content from the repository files.
82 default_max_file_size : int
83 The file size slider position used.
84 pattern_type : str
85 The pattern type used for filtering.
86 pattern : str
87 The pattern used for filtering.
88
89 """
90
91 repo_url: str = Field(..., description="Original repository URL")
92 short_repo_url: str = Field(..., description="Short repository URL (user/repo)")
93 summary: str = Field(..., description="Ingestion summary with token estimates")
94 digest_url: str = Field(..., description="URL to download the full digest content")
95 tree: str = Field(..., description="File tree structure")
96 content: str = Field(..., description="Processed file content")
97 default_max_file_size: int = Field(..., description="File size slider position used")
98 pattern_type: str = Field(..., description="Pattern type used")
99 pattern: str = Field(..., description="Pattern used")
100
101
102class IngestErrorResponse(BaseModel):

Callers 2

_check_s3_cacheFunction · 0.90
process_queryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected