motleycrew.applications.research_agent.question

Classes

Question(*, question[, answer, context])

Represents a question node in the graph.

class motleycrew.applications.research_agent.question.Question(*, question: str, answer: str | None = None, context: list[str] | None = None)

Bases: MotleyGraphNode

Represents a question node in the graph.

question: str
answer: str | None
context: list[str] | None
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'answer': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'context': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'question': FieldInfo(annotation=str, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.