modeci_mdf.functions.actr.pattern_matching_function

modeci_mdf.functions.actr.pattern_matching_function(productions: List[Dict[str, Any]], goal: Dict[str, str], retrieval: Dict[str, str]) List[Dict[str, Any]][source]

Returns the productions that match the given goal and retrieval buffers.

Parameters:
  • productions – A list of all productions as dicts.

  • goal – The current value of the goal buffer as a dict.

  • retrieval – The chunk dict retrieved from declarative memory.

Returns:

A list of productions that match the buffers.