multi_agent / reviewer.py
NithikaShree's picture
Create reviewer.py
3687e6b verified
raw
history blame contribute delete
345 Bytes
from llm import llm
from state import AgentState
PROMPT = """
Review the following HTML code.
Fix errors if any.
Improve performance, accessibility, and responsiveness.
Return the corrected FULL HTML code.
HTML:
{}
"""
def reviewer(state: AgentState):
result = llm.invoke(PROMPT.format(state["code"]))
return {"code": result.content}