module/applyreview.py¶
module.applyreview ¶
Apply review
ApplyReview ¶
Apply Review
Source code in module/applyreview.py
get
staticmethod
¶
Get review result
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pid |
str
|
Porject id |
required |
tid |
str
|
Team id |
required |
uids |
list
|
list of user ids |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
The same struct with structs.teams.TeamApplyReview |
Source code in module/applyreview.py
save_resp_view
staticmethod
¶
Save resp view
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pid |
str
|
Porject id |
required |
tid |
str
|
Team id |
required |
uid |
str
|
User id |
required |
resp |
RespCompletions
|
OpenAI API response |
required |
Source code in module/applyreview.py
submit_review ¶
Submit review to OpenAI
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pid |
str
|
Porject id |
required |
tid |
str
|
Team id |
required |
uid |
str
|
User id |
required |
Returns:
Type | Description |
---|---|
RespCompletions
|
The struct of |
Source code in module/applyreview.py
review_template ¶
review template
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tid |
str
|
Team id |
required |
Returns:
Type | Description |
---|---|
str
|
Template content |