in devai-cli/src/devai/commands/review.py [0:0]
def blockers(context):
source='''
### Context (code) ###:
{}
'''
qry = get_prompt('review_query')
if qry is None:
qry='''
### Instruction ###
You are an experienced software engineer specializing in blocking. Analyze the code and check if there are components that are in the BLOCKERS list below.
Provide explanation why you made the decision.
BLOCKERS: "IBM MQ"
### Output Format ###
Provide your findings in a structured JSON format using following JSON schema:
{
"onboarding_status": "",
"blockers": []
}
JSON example when BLOCKER is detected:
{
"onboarding_status": "BLOCKED",
"blockers": ['Jenkins']
}
JSON example when BLOCKER is NOT detected:
{
"onboarding_status": "APPROVED",
"blockers": []
}
### Example Dialogue ###
'''
# Load files as text into source variable
source=source.format(format_files_as_string(context))
code_chat_model = GenerativeModel(MODEL_NAME)
with telemetry.tool_context_manager(USER_AGENT):
code_chat = code_chat_model.start_chat(response_validation=False)
code_chat.send_message(qry)
response = code_chat.send_message(source)
click.echo(f"{response.text}")