class Check(LLMChain):
@classmethod
def from_llm(cls, **kwargs) -> LLMChain:
return cls(
**kwargs,
prompt=PromptTemplate.from_template(
dedent(
"""\
You are evaluating the result of an AI agent against its task to verify its accurate completion. # <=
Here is the relevant context: {context}
Here is the result: {learning}
If the result accomplishes its task, return "Complete".
Otherwise, return new task for the agent to complete.
Do not embellish.
Task: \
"""
),
),
)