modeci_mdf.functions.actr.retrieve_chunk
- modeci_mdf.functions.actr.retrieve_chunk(pattern: Dict[str, str], dm_chunks: List[Dict[str, str]], types: Dict[str, List[str]]) Dict[str, str] [source]
Retrieve a chunk from declarative memory given a pattern.
- Parameters:
pattern – A dict representing the pattern to match.
dm_chunks – A list of dicts, each representing a chunk in declarative memory.
types – A dict containing each possible chunk type.
- Returns:
The chunk in declarative memory that matches the pattern.