-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodels.py
More file actions
38 lines (30 loc) · 772 Bytes
/
models.py
File metadata and controls
38 lines (30 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
Pydantic models for the GitHub Omi plugin.
"""
from typing import List, Optional
from pydantic import BaseModel
class ChatToolResponse(BaseModel):
"""Response model for Omi chat tools."""
result: Optional[str] = None
error: Optional[str] = None
class GitHubRepo(BaseModel):
"""GitHub repository information."""
name: str
full_name: str
owner: str
private: bool
description: Optional[str] = None
url: str
class GitHubIssue(BaseModel):
"""GitHub issue information."""
number: int
title: str
state: str
body: Optional[str] = None
labels: List[str] = []
url: str
class GitHubLabel(BaseModel):
"""GitHub label information."""
name: str
color: str
description: Optional[str] = None