haive.agents.rag.simple.answer_agent¶

Answer Agent for RAG - SimpleAgent with document context prompt.

Classes¶

AnswerAgent

SimpleAgent configured for answering questions based on retrieved documents.

Module Contents¶

class haive.agents.rag.simple.answer_agent.AnswerAgent(/, **data)¶

Bases: haive.agents.simple.agent.SimpleAgent

SimpleAgent configured for answering questions based on retrieved documents.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)