agents.ltm.memory_schemas¶
Memory schemas for LTM agent using LangMem patterns.
These schemas define the structure of memories that will be extracted and managed by the LTM agent.
Classes¶
General conversational memory. |
|
Factual information memory. |
|
Basic memory schema following LangMem patterns. |
|
Personal context and relationship memory. |
|
User preference memory. |
Module Contents¶
- class agents.ltm.memory_schemas.ConversationalMemory(/, **data)¶
Bases:
pydantic.BaseModelGeneral conversational memory.
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)
- class agents.ltm.memory_schemas.FactualMemory(/, **data)¶
Bases:
pydantic.BaseModelFactual information memory.
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)
- class agents.ltm.memory_schemas.Memory(/, **data)¶
Bases:
pydantic.BaseModelBasic memory schema following LangMem patterns.
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)
- class agents.ltm.memory_schemas.PersonalContext(/, **data)¶
Bases:
pydantic.BaseModelPersonal context and relationship memory.
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)
- class agents.ltm.memory_schemas.UserPreference(/, **data)¶
Bases:
pydantic.BaseModelUser preference memory.
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)